pub fn Tree(props: TreeProps) -> impl IntoViewExpand description
A hierarchical tree view built from items, with arrow-key navigation,
F2 inline rename, drag and drop moves, and single or multi selection. The
optional on_select, selected, selection, on_rename, on_move, and
on_expand props wire up interaction; default_expanded opens every branch
initially.
§Required Props
- items:
Vec<TreeItem>
§Optional Props
- on_select:
Callback<String> - selected:
impl Into<Signal<Option<String>>> - selection:
RwSignal<HashSet<String>> - on_rename:
Callback<(String, String)> - on_move:
Callback<(String, String)> - on_expand:
Callback<String> - default_expanded:
bool