| Crates.io | egui-multiselect |
| lib.rs | egui-multiselect |
| version | 0.6.0 |
| created_at | 2024-09-14 13:55:01.62068+00 |
| updated_at | 2025-07-21 19:39:52.434361+00 |
| description | Multiselect widget for egui |
| homepage | |
| repository | https://github.com/frankvgompel/egui-multiselect |
| max_upload_size | |
| id | 1374789 |
| size | 92,694 |
A multiselect widget for Egui

Most inspiration borrowed from ItsEthra dropdown The clunky bits are mine.
Select multiple items from a list. The maximum amount of choices must be defined. It uses egui-notify to notify when the amount is fulfilled. Clicking the x on the item removes it from the selections.

// Working example can be found in `examples/multiselect.rs`
ui.add(MultiSelect::new(
format!("test_multiselect {}", &self.max_opt),
&mut self.items,
&mut self.ms_answers,
&self.options,
|ui, _text| ui.selectable_label(false, _text),
&self.max_opt,
&mut self.toasted,
));