Hey guys,
Is it possible to update the ‘value’ parameter of a ‘dcc.Input’ object?
Some of the things I’ve tried:
app.layout = html.Div([
dcc.Dropdown(id='selector', value='1', options= [{'label': i, 'value': i} for i in [1,2,3]]),
dcc.Input(id='test', )
])
@app.callback(dash.dependencies.Output('test', 'value'),
[dash.dependencies.Input('selector', 'value')])
def update_shocks(value):
return value
I would like to fill several Input objects starting values based on a dropdown.