Why can’t we use Categories and value if the formation of it is different than for my submitting for everything callback?
Does anyone have a fix for this?
#Callback for dropdown menu
@app.callback(dash.dependencies.Output('dd-output-container', 'children'),[dash.dependencies.Input('Categories', 'value')])
def update_output_dropdown(value):
return 'You have selected "{}"'.format(value)
#Callback for submitting everything.
@app.callback(Output('target', 'children'), Input('submit', 'n_clicks'), Input('Categories', 'value: (sheet_name, dfs)'))
def callback(n_clicks, dfs, value):
if (n_clicks != 0):
calculation()
return calculation