hi Team,
Could you please help - I was trying to empty the selection in dropdown (planning to do this for multiple dropdowns) values at a button click but this does’t seems to be working.
Reset Filter values
@app.callback(dash.dependencies.Output(‘filterByN1’, ‘value’),
[dash.dependencies.Input(‘resetButton’, ‘n_clicks’)])
def on_click(n_clicks):
if (n_clicks):
return {‘value’:None}
Above snippet is replacing all selected values within a dropdown to Nan value as displayed in above image.
regards,