| Crates.io | egui_ltreeview |
| lib.rs | egui_ltreeview |
| version | 0.5.3 |
| created_at | 2025-03-09 14:51:56.02228+00 |
| updated_at | 2025-07-20 15:08:30.714977+00 |
| description | A tree view widget for egui |
| homepage | |
| repository | https://github.com/LennysLounge/egui_ltreeview |
| max_upload_size | |
| id | 1585555 |
| size | 220,997 |
egui_ltreeview is a tree view widget for eguiThis tree view widget implements all the common features of a tree view to get you up and running as fast as possible.
let id = ui.make_persistent_id("Names tree view");
TreeView::new(id).show(ui, |builder| {
builder.dir(0, "Root");
builder.leaf(1, "Ava");
builder.leaf(2, "Benjamin");
builder.leaf(3, "Charlotte");
builder.close_dir();
});
Create a new TreeView with its unique id and show it for the current ui.
Use the builder in the callback to add directories and leaves
to the tree. The nodes of the tree must have a unqiue id which implements the NodeId trait.
The examples folder contains a few examples to get you up and running quickly.
It also contains a playground example witch implements every feature of this widget and lets you change its settings on the fly. You can run it using cargo run --example playground.
