Skip to main content
Basic Usage
{% download data="demo_daily_orders" /%}

Examples

Custom Label and Filename

Custom Label and Filename
{% download
  data="demo_daily_orders"
  label="Export Orders"
  filename="daily_orders_export"
/%}

With Variant

With Variant
{% download
  data="demo_daily_orders"
  label="Export Data"
  variant="primary"
/%}

With Large Limit

{% download
  data="demo_daily_orders"
  label="Download Recent Orders"
  limit=50000
/%}

Attributes

data
String
required
Table or view to download
label
String
default:"Download"
Text displayed on the download button
filename
String
Name of the downloaded file (without extension)
variant
String
default:"default"
Button style variantAllowed values:
  • default
  • primary
  • destructive
  • secondary
  • ghost
  • link
filters
Array
IDs of filters to apply to the query
where
String
Custom SQL WHERE condition to apply to the query. For date filters, use date_range instead.
having
String
Custom SQL HAVING condition to apply to the query after GROUP BY
limit
Number
Maximum number of rows to return from the query
order
String
Column name(s) with optional direction (e.g. “column_name”, “column_name desc”)
qualify
String
Custom SQL QUALIFY condition to filter windowed results