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
Description
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