View source: R/dashCoreComponents.R
dccDownload | R Documentation |
The Download component opens a download dialog when the data property changes.
dccDownload(id=NULL, data=NULL, base64=NULL, type=NULL)
id |
Character. The ID of this component, used to identify dash components in callbacks. |
data |
Lists containing elements 'filename', 'content', 'base64', 'type'. those elements have the following types: - filename (character; required): suggested filename in the download dialogue. - content (character; required): file content. - base64 (logical; optional): set to true, when data is base64 encoded. - type (character; optional): blob type, usually a mime-type.. On change, a download is invoked. |
base64 |
Logical. Default value for base64, used when not set as part of the data property. |
type |
Character. Default value for type, used when not set as part of the data property. |
named list of JSON elements corresponding to React.js properties and their values
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.