Crates.io | egui-multiselect |
lib.rs | egui-multiselect |
version | 0.2.0 |
source | src |
created_at | 2024-09-14 13:55:01.62068 |
updated_at | 2024-09-30 18:04:44.023648 |
description | Multiselect widget for Egui |
homepage | |
repository | https://github.com/frankvgompel/egui-multiselect |
max_upload_size | |
id | 1374789 |
size | 104,692 |
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,
));