dccDownload: Download component

View source: R/dashCoreComponents.R

dccDownloadR Documentation

Download component

Description

The Download component opens a download dialog when the data property changes.

Usage

dccDownload(id=NULL, data=NULL, base64=NULL, type=NULL)

Arguments

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.

Value

named list of JSON elements corresponding to React.js properties and their values


plotly/dashR documentation built on June 12, 2022, 9:08 a.m.