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

Leave all options open in dcc.Dropdown after one is selected

$
0
0

Hi all,

I want to have a dropdown that does not leave out options after choosing them. So if in the example below I pick “1”, then I want to be able to pick that again (now the selection becomes 2,3,4,5 after picking 1). Is this possible?

Thanks in advanced!

import dash
import dash_core_components as dcc
import dash_html_components as html

app = dash.Dash()

app.layout = html.Div([
    dcc.Dropdown(
                    options=[{'label':i, 'value':i} for i in range(0,5)],
                    value=[],
                    multi=True
                )
    ])
if __name__ == '__main__':
    app.run_server(debug=True)

5 posts - 3 participants

Read full topic


Viewing all articles
Browse latest Browse all 6271

Trending Articles