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

Dash error for app.callback for submitting everything and dropdown list

$
0
0

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

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 6271

Trending Articles