3 unstable releases
0.2.1 | Apr 4, 2023 |
---|---|
0.2.0 | Mar 2, 2023 |
0.1.0 | Nov 3, 2022 |
41 downloads per month
25KB
67 lines
egui-dropdown
Dropdown list for egui.
Installation
[dependencies]
egui-dropdown = "0.2"
Usage
// Working example can be found in `examples/dropdown.rs`
ui.add(DropDownBox::from_iter(
&self.items,
"test_dropbox",
&mut self.buf,
|ui, text| ui.selectable_label(false, text)
));
Naming
Although it's called DropDownBox
, technically speaking it should be called ComboBox
.
But this is what egui uses for its version of the widget so yeah.
lib.rs
:
egui-dropdown
Dependencies
~3–8MB
~120K SLoC