Skip to main content

AML TextBlock

TextBlock displays static or dynamic text content inside a dashboard. It accepts Markdown, HTML, or a combination of both.

Syntax

block <name>: TextBlock {
content: @md ... ;; // or @html ... ;;
theme: BlockTheme { ... } // optional
}

Parameters

ParameterDescription
contentThe block's content. Use @md ... ;; for Markdown or @html ... ;; for HTML.
themeOptional BlockTheme override for visual styling.

Examples

Markdown content

block header: TextBlock {
content: @md
# Sales Report
Data refreshes every 6 hours.
;;
}

HTML content

block banner: TextBlock {
content: @html
<div style="background: #1a1a2e; color: white; padding: 16px;">
<h2>Welcome to the Dashboard</h2>
</div>
;;
}

With theme override

block hero: TextBlock {
theme: BlockTheme {
background { bg_color: 'transparent' }
label { font_color: '#ffffff' }
}
content: @md # Welcome ;;
}

For dynamic, data-driven text content that updates with your data, see Dynamic Content Blocks.

See also


Open Markdown
Let us know what you think about this document :)