egui icon indicating copy to clipboard operation
egui copied to clipboard

ComboBox search

Open OpoOpo opened this issue 3 years ago • 3 comments

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 avatar Oct 25 '21 13:10 OpoOpo

@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?

antonguzun avatar Dec 12 '22 20:12 antonguzun

@emilk bumping this issue, any ideas on how to handle making this change?

tom-kaufman avatar Aug 02 '23 03:08 tom-kaufman