Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ItsEthra/egui-dropdown
An actual dropdown list for egui
https://github.com/ItsEthra/egui-dropdown
Last synced: 5 days ago
JSON representation
An actual dropdown list for egui
- Host: GitHub
- URL: https://github.com/ItsEthra/egui-dropdown
- Owner: ItsEthra
- License: mit
- Created: 2022-11-01T20:03:59.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-09-26T14:34:23.000Z (about 1 month ago)
- Last Synced: 2024-10-28T22:15:02.470Z (11 days ago)
- Language: Rust
- Size: 24.4 KB
- Stars: 39
- Watchers: 2
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-egui - egui-dropdown
README
# egui-dropdown
Dropdown list for egui.![](media/showcase1.png)
# Installation
```toml
[dependencies]
egui-dropdown = "0.11"
```# Usage
```rust
// 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.