Skip to content
This repository was archived by the owner on Jun 4, 2024. It is now read-only.
This repository was archived by the owner on Jun 4, 2024. It is now read-only.

Dropdown won't display #956

Open
Open
@TKELKAR123

Description

@TKELKAR123

I am trying to create a dropdown feature inside a DataTable like this:
Screenshot 2023-10-05 at 02 34 28

Unfortunately I cannot click on the dropdown button and then trigger the full menu showing. Instead I have to manually type in the value I want into the cell for the column.
For the working code example from the main website, here, I get this HTML upon inspection - the .Select-menu-outer in particular seems to be what we're after.
Screenshot 2023-10-05 at 02 36 47

This doesn't appear to be a CSS override issue as I am unable to trigger this HTML by clicking on the dropdown menu button in the first place, and only have this HTML:
Screenshot 2023-10-05 at 02 38 46

This is my sanitised code with dummy values put for the data variable in case this is causing the error (the data gets updated by a function on uploading a separate CSV that overwrites the data)

html.Div(id='output-table', style={'display': 'block'}, children=[ dash_table.DataTable( id='table', editable=True, columns=[ {"name": "Source", "id": "Source"}, {"name": "Target", "id": "Target"}, {"name": "# of Calls", "id": "# of Calls"}, {"name": "color", "id": "color", 'presentation': 'dropdown', "editable": True} ], data=[ {'Source': 'A', 'Target': 'B', '# of Calls': 10, 'color': 'green'}, {'Source': 'B', 'Target': 'C', '# of Calls': 5, 'color': 'red'}, {'Source': 'C', 'Target': 'D', '# of Calls': 2, 'color': 'darkgrey'} ], dropdown={ 'color': { 'options': [ {'label': 'Happy path', 'value': 'green'}, {'label': 'Unhappy path', 'value': 'red'}, {'label': 'Neutral path', 'value': 'darkgrey'} ] } }, )

Any help on what is causing this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions