dash_mp_components.Download

class dash_mp_components.Download(id: str | dict | None = None, data: Any | None = None, isBase64: Any | None = None, isDataURL: Any | None = None, mimeType: Any | None = None, **kwargs)[source]

Bases: Component

A Download component.

Keyword arguments:

  • id (optional):

    The ID used to identify this component in Dash callbacks.

  • data (optional):

    When set, a download is invoked using a Blob. Accepts an object with the following structure: { filename: string; content: any; isBase64: boolean (optional); isDataURL: boolean (optional); mimeType: string (optional, default: ‘text/plan’); } Properties in data object take precedent over component props.

  • isBase64 (optional):

    Set to True if data.content is a base64 string.

  • isDataURL (optional):

    Set to True if data.content is a data url.

  • mimeType (optional):

    Default value for mimeType.

  • setProps (optional):

    Dash-assigned callback that should be called to report property changes to Dash, to make them available for callbacks.

__init__(id: str | dict | None = None, data: Any | None = None, isBase64: Any | None = None, isDataURL: Any | None = None, mimeType: Any | None = None, **kwargs)

Methods

__init__([id, data, isBase64, isDataURL, ...])

to_plotly_json()

Attributes

REQUIRED

UNDEFINED

available_wildcard_properties