For Dashboard Designers Reference FileDownload
Saturday, October 14, 2023 12:55 PMFileDownload
Label: :IA_Function
Property: type: FileDownload
Inherits from: Function
FileDownload
can be used to download text 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 |
|
mimeType |
Default file extention in download file dialog. | text/plain |
string - valid MIME type |
fileName |
Default file name in download file dialog. | example.txt |
string |
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",
}