Dropdown - how to hide selected value and only display the arrow button

Hi @kiteme ,

something like this? It`s just the dbc DropDown…

dd

import dash
import dash_bootstrap_components as dbc

app = dash.Dash(external_stylesheets=[dbc.themes.BOOTSTRAP])

app.layout = dbc.DropdownMenu(
    label="",
    children=[
        dbc.DropdownMenuItem("Item 1"),
        dbc.DropdownMenuItem("Item 2"),
        dbc.DropdownMenuItem("Item 3"),
    ],
)

if __name__ == '__main__':
    app.run()

EDIT: Maybe interesting in this context:

4 Likes