eduardo, i’m sure i 'm bothering you, i want to ask a last question
html.Div(
className='div-for-dropdown',
children=[
dcc.Dropdown(id='stockselector',
options=[{'label': i, 'value': i} for i in data_list],
multi=False,
value = '',
style={},
className='stockselector',
clearable=False,
placeholder = 'Select your parameters...',
),
],
style={}),
html.Div(className='div-for-checklist',
children=[
dcc.Checklist(id = 'choosen_param',
options=[],
labelStyle={'display': 'block', "cursor" : "pointer"},
labelClassName="group-labels",
),
]),
my layout code is that, and my callback code is
@app.callback(
[dash.dependencies.Output('choosen_param', 'options'),],
[dash.dependencies.Input('stockselector', 'value')],
)
def update_output(dropdown_value):
options = [[{'label': i, 'value':i} for i in [dropdown_value]]]
return options
when i choose the dropdown option, i can see the last option of dropdown_list, it changes everytime but i want to add the checklist.
if i can take dropdown as “multi=True”, there is no problem but “False” it doesnt work.
Thank you