egui-multiselect

Crates.ioegui-multiselect
lib.rsegui-multiselect
version0.2.0
sourcesrc
created_at2024-09-14 13:55:01.62068
updated_at2024-09-30 18:04:44.023648
descriptionMultiselect widget for Egui
homepage
repositoryhttps://github.com/frankvgompel/egui-multiselect
max_upload_size
id1374789
size104,692
(frankvgompel)

documentation

README

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,
));
Commit count: 9

cargo fmt