tree (cellium v0.1.0)
View SourceTree widget module for rendering hierarchical data.
This module provides an interactive tree widget that handles keyboard events for navigation, expansion, and selection.
Usage
Basic tree:
{tree, [{id, my_tree}, {nodes, [
{"Root", [
{"Child 1", []},
{"Child 2", [
{"Grandchild", []}
]}
]}
]}]}Properties
nodes(list): The tree structure.expanded_ids(list): IDs of nodes that are currently expanded.selected_index(integer): The index of the currently selected visible item.scroll_offset(integer): The index of the first item to display.
Summary
Functions
Handles keyboard events for the tree.
Creates a new tree widget.
Creates a new tree widget with the specified nodes.
Renders the tree widget.
Functions
Handles keyboard events for the tree.
Creates a new tree widget.
Creates a new tree widget with the specified nodes.
Renders the tree widget.