egui
egui copied to clipboard
ComboBox search
Hi,
I would like to if ComboBox
could enable search/filtering, it means that I would like to be able to write text and the possible variants (selectable_value
) of ComboBox
would be filtered based on the entered text.
Thank you :-)
@OpoOpo Hello! I found the solution to this problem. Unfourchantly, it's not so beautiful, but it works. We can add checking for events into component and change some global states for storing search filters. There is my example. Cons of that solution: we should be cautious and watch for the correct filter state.
I have no idea for patching ComboBox
because it expects FnOnce closure, I don't know how we can add filtration over it
@emilk could you give advice for a common solution?
@emilk bumping this issue, any ideas on how to handle making this change?