Global

Methods

offerDataForDownload(filename, data, type)

Offer data as download in the browser.
Parameters:
Name Type Description
filename string the name of the file to be downloaded
data * the data
type string the MIME type of the data, e.g. 'text/csv' or 'application/json'
Source: