#widgets #egui #graphics #selection

egui-multiselect

Multiselect widget for Egui

2 unstable releases

0.2.0 Sep 30, 2024
0.1.0 Sep 14, 2024

#438 in GUI

Download history 111/week @ 2024-09-09 48/week @ 2024-09-16 6/week @ 2024-09-23 164/week @ 2024-09-30 10/week @ 2024-10-07

246 downloads per month

MIT license

28KB
122 lines

Egui-multiselect

A multiselect widget for Egui

Most inspiration borrowed from ItsEthra dropdown The clunky bits are mine.

Functionality

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.

Usage

// 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,
));

lib.rs:

egui-multiselect

Dependencies

~8–46MB
~762K SLoC