dash_mp_components.DownloadDropdown

class dash_mp_components.DownloadDropdown(children: str | int | float | Component | None | Sequence[str | int | float | Component | None] = None, id: str | dict | None = None, className: str | None = None, buttonClassName: str | None = None, data: Any | None = None, filename: str | None = None, tooltip: str | None = None, **kwargs)[source]

Bases: Component

A DownloadDropdown component. Dropdown for exporting arrays/lists to json, csv, or xlsx files The dropdown options are prepopulated as JSON, CSV, EXCEL This dropdown contains all the classes used in bulma dropdown

Keyword arguments:

  • children (a list of or a singular dash component, string or number; optional):

    Use the children prop to set the content for the dropdown button label This can be simple text or a component.

  • id (string; optional):

    The ID used to identify this component in Dash callbacks.

  • buttonClassName (string; optional):

    Class(es) to add to the button element of the component Note: the class “button” is already added by default.

  • className (string; optional):

    Class(es) to add to the top-level element of the component Note: the classes “mpc-download-dropdown dropdown is-active” are already added by default.

  • data (optional):

    Array/list to be downloaded.

  • filename (string; optional):

    Name of the file WITHOUT the extension (default: “export”).

  • tooltip (string; optional):

    Optional tooltip to display above the button on hover.

__init__(children: str | int | float | Component | None | Sequence[str | int | float | Component | None] = None, id: str | dict | None = None, className: str | None = None, buttonClassName: str | None = None, data: Any | None = None, filename: str | None = None, tooltip: str | None = None, **kwargs)

Methods

__init__([children, id, className, ...])

to_plotly_json()

Attributes

REQUIRED

UNDEFINED

available_wildcard_properties