For Dashboard Designers Reference FileDownload
Friday, November 11, 2022 12:54 PMFileDownload
Label: :IA_Function
Property: type: FileDownload
Inherits from: Function
FileDownload
can be used to download content (query result, evaluated data, etc.) from Graphileon client to the local machine as a file.
Function parameters
Key | Description | Default value | Possible values |
---|---|---|---|
content |
Content of the file | String; see below. | |
mimeType |
Default file extention in download file dialog. | text/plain | String; see below. |
fileName |
Default file name in download file dialog. | example.txt | String; see below. |
Outgoing triggers
Type: success
Occurrence: The event is triggered after the download of the content is triggered regardless of the action the user takes (saving the file or canceling the action).
Example
{
"type": "FileDownload",
"content": "This is an example text",
"mimeType": "text/plain",
"fileName": "an-example-file",
}