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

Some example data to download

This data is here just for example.

Static version (see below for more info)

Static version of the same widget

This data is here just for example.

Using "url" parameter

This widget allows user to downlad file by url

This data is here just for example.

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"