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

Getting values selected from dropdown menue only after click event?

$
0
0

I am using pattern matching code from page: here.

Code is:

@app.callback(
    Output('dropdown-container-output', 'children'),
    Input({'type': 'filter-dropdown', 'index': ALL}, 'value')
)
def display_output(values):
    return html.Div([
        html.Div('Dropdown {} = {}'.format(i + 1, value))
        for (i, value) in enumerate(values)
    ])

Here I am interested in this Input({'type': 'filter-dropdown', 'index': ALL}, 'value') but only when click event has occurred. Have tried multiple things but got no success. Any help will be greatly appreciated.

Thank You.

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 6271

Latest Images

Trending Articles



Latest Images