Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

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.