#egui #widgets #graphics #selection

egui-multiselect

Multiselect widget for egui

5 releases (breaking)

new 0.5.0 Mar 7, 2025
0.4.0 Feb 9, 2025
0.3.0 Jan 11, 2025
0.2.0 Sep 30, 2024
0.1.0 Sep 14, 2024

#407 in GUI

Download history 3/week @ 2024-12-08 83/week @ 2025-01-05 63/week @ 2025-01-12 5/week @ 2025-01-19 5/week @ 2025-02-02 121/week @ 2025-02-09 22/week @ 2025-02-16 99/week @ 2025-03-02

242 downloads per month

MIT license

26KB
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

~9–47MB
~763K SLoC