Skip to main content

TreeRow

Function TreeRow 

Source
pub fn TreeRow(
    modifier: Modifier,
    depth: usize,
    has_children: bool,
    is_expanded: bool,
    is_selected: bool,
    on_toggle: impl Fn() + 'static,
    on_select: impl Fn() + 'static,
) -> View
Expand description

A single row in a tree view.

Renders with indentation based on depth, an expand/collapse arrow if has_children is true, and a highlight background if is_selected. The first child is the row’s label/content.