Events were removed from Dash in a recent update, and the won’t be added back in. Instead, you can use an Input
in a callback that is listening for changes to the n_clicks
property of any Dash component (such as html.Button
)
See the Button example in the Dash docs: https://dash.plot.ly/dash-core-components/