Quantcast
Channel: 🎛️ Dash - Plotly Community Forum
Viewing all articles
Browse latest Browse all 6271

Dynamic change of layout element's property

$
0
0
some_list = ['A', 'B']
.
.
.
dcc.Checklist(  id='checklist_1',
                options={'label': 'LabA', 'value': 'valueA'}
                value=['A'], 
                inputStyle={'cursor':'pointer'}, 
             )

Is it possible to dynamically change layout property from outside app.layout declaration?

For example, can I change content of ‘options’, of just ‘label’, from within callback when app is running.

My tests suggest that app.layout is read only once at initialization but want to confirm if I’m correct.

4 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 6271