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

Add Scroll Bar Inside the dcc.Dropdown Menu after selecting the item

$
0
0

Hi, I am trying to add a scroll bar Y-axis inside the DCC. Dropdown box as I don’t want it to expand as and when I select multiple items from the list.

Here is the screenshot.

image

here is the layout

html.Div([
            dbc.Row([
                dbc.Col([
                    dcc.Dropdown(
                        id='segment',
                        options=[{'label': i, 'value': i} for i in df['name_id'].unique()],
                        persistence=True, persistence_type='memory',
                        multi=True,
                        style={'width': '500px', 'display': 'inline-block'}, optionHeight=70,
                        placeholder='Segment'),
                ], style={'margin-top': 80, 'margin-left': -315, 'display': 'table-cell', 'verticalAlign': 'middle',
                          })
            ])])

2 posts - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 6271

Latest Images

Trending Articles



Latest Images