Bring Drag & Drop to Dash with Dashboard Engine. 💫 Learn how at our next webinar!

Keeping the height and width of Multi Value Dropdown fixed when multiple options selected

I am trying to create a multi value dropdown with all values selected by default. I want to keep the height and width of dropdown fixed. Is there any way to add a scroll when multiple values are selected?

html.Div([dcc.Dropdown(options=[
{‘label’: ‘Group’, ‘value’: ‘Group’},
{‘label’: ‘Individual’, ‘value’: ‘Individual’}],
id=‘group’, style=dict(fontSize = 11, width=180, height=8,
color=colors[‘text2’]),
value=[‘Group’,‘Individual’],
placeholder=“Select a Group”,
multi=True,clearable=False)])
pic

1 Like