Skip to content
This repository was archived by the owner on Jun 4, 2024. It is now read-only.
This repository was archived by the owner on Jun 4, 2024. It is now read-only.

Enable third party components to trigger actions like download #519

Open
@chriddyp

Description

@chriddyp

If we had a property like n_downloaded that represents the "number of times the data has been downloaded", then users could wire in their own components like buttons to trigger downloads. For example:

html.Button('Download Data', id='download'),
data_table.DataTable(id='table', ...),

@app.callback(Output('table', 'n_downloaded'), [Input('download', 'n_clicks')])
def trigger_download(n_clicks):
    return n_clicks

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions