Example

{% modal
    title="Detailed Trend"
%}
Below is a detailed sales trend

    {% line_chart
        data="demo_daily_orders"
        x="date"
        y="sum(total_sales)"
        date_grain="quarter"
    /%}
{% /modal %}

Attributes

title
String
required
Title displayed in the modal header
buttonText
String
Text displayed on the button that opens the modal. Defaults to the title if not provided.
variant
String
default:"default"
Button style variant
icon
String
Icon to display in the button and modal header
icon_only
Boolean
default:"false"
Show only the icon in the button with a tooltip containing the title