Download Data
The Download Data component allows you to place a link on your page to download a specified dataset to CSV.
<DownloadData data={categories}/>
Examples
Custom Text
<DownloadData data={categories} text="Click Here"/>
Custom Query ID
<DownloadData data={categories} queryID=my_file/>
Options
Required
Query name, wrapped in curly braces
- Options:
- query name
Label to show on the link
- Options:
- string
- Default:
- Download
Label to include as the start of the CSV filename. If no queryID is supplied, "evidence_download" is used.
- Options:
- string