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

Prevent dcc.dropdown from being empty

$
0
0

Greetings

In the attached image, is it possible to prevent the ‘driver’ dropdown from being empty i.e. prevent the user from removing “Lewis Hamilton”? I thought of trying to prevent the resulting empty array(if “Lewis Hamilton” was cleared) but I am not sure how to reflect it graphically to the user that it cannot be cleared. My reason for doing this, is to prevent an empty plot from being rendered.

Any help would be appreciated. Thank you for reading

5 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 6271

Latest Images

Trending Articles



Latest Images