Change dash Checklist values by callback
I would like to change the selected options of an plotly dash checklist by an callback. My minimal working example is as following (Values should change by hitting the 'load' button -> at loading the page nothing ist selected, after click the button 'SF' should be selected): import dash app = dash.Dash(__name__) app.layout = html.Div([ dcc.Checklist( options=[ {'label': 'New York City', 'value': 'NYC'}, {'label': 'Montréal', 'value': 'MTL'}, {'label': 'San Francisco', 'value': 'SF'} ], labelStyle={'display': 'block'}, value=[] ), html.Button('load', id='load-button', n_clicks=0) ]) @app.callba
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.