[Python] Dash Multi-Value Dropdown wrapping text skips the first line

Discussão em 'Python' iniciado por Stack, Fevereiro 10, 2025.

  1. Stack

    Stack Membro Participativo

    I'm making a Dash Multi-Value Dropdown [docs here] and finding that long labels use a text wrapping process that skips the first line entirely.

    When I make a Dash Multi-Value Dropdown like this:

    dcc.Dropdown(
    options=[
    {
    'label': str(entity),
    'value': entity,
    'title': entity,
    }
    for entity in entity_list
    ],
    multi=True,
    optionHeight=55,
    value=entity_list,
    )


    Longer labels, like the 3rd row in this screenshot, use a text wrapping process that skips the first line entirely.

    Issue shown in middle row

    Is there a way to make those labels wrap text in a way that includes the first line? Even inelegant/hacky solutions are appreciated!

    Continue reading...

Compartilhe esta Página