Searchable drop-down?
Hi everyone, I have the following ui element:
The selection is used to show plots related to the person selected from the menu. Is there a better way to do this for large numbers of people?
df
has thousands of unique records. It feels like I should be able to type a first or a last name into some mini search box and have those options appear. Thank you for your time!Solution:Jump to solution
Yea -- can you try
mo.ui.multiselect
? That lets you type into it: https://docs.marimo.io/api/inputs/multiselect.html#marimo.ui.multiselect4 Replies
Solution
Yea -- can you try
mo.ui.multiselect
? That lets you type into it: https://docs.marimo.io/api/inputs/multiselect.html#marimo.ui.multiselectAwesome, this works great. Is there some way to enforce at most one selection is chosen?
Yea, there’s a max_selections param
Described on the doc page i think
Perfect thank you!