↑ Helpers
⚙️ data-saver
Widget for downloading data
Allows reader to download embedded data.
→ See this page in edit mode.
Example
Code
```h:data-saver
title: Some example data to download
description: This data is here just for example.
name: data.csv
```
Result
Static version (see below for more info)
Using "url" parameter
Parameters
name | meaning | type | default |
---|---|---|---|
name | name of the data chunk to download | string | no, required! |
title | Title of the widget | string | name param |
description | Description field for the widget | string | — |
file | Filename of the file | string | name param |
static | Create static version of widget. It will work without JS, but also increases file size | boolean | false |
url | Download file by url, not data chunk | string | undefined |
bgColor | Background colour of the widget | string | "#444" |
fgColor | Foreground color | string | "#fff" |