ReadonlyariaAccessible label for the tree.
ReadonlydatasourceThe datasource providing the tree structure.
ReadonlydisabledWhether the tree view is disabled.
ReadonlydisplayFunction that returns a display string for a node's data.
Used when no custom #nodeTemplate is projected.
Defaults to String(node.data).
ReadonlyfilterOptional predicate applied to each node's data payload.
When set, only nodes that satisfy the predicate (or whose descendants satisfy it) are rendered. Ancestor nodes of matching descendants are kept visible and auto-expanded so the user can see the full path.
Pass undefined or null to clear the filter.
ReadonlynodeEmits when a node is activated (double-click or Enter on selected node).
ReadonlynodeEmits the node when a node is collapsed.
ReadonlynodeEmits the node when a node is expanded.
ReadonlynodeOptional consumer-projected template for rendering each node's content. Receives TreeNodeContext as its context.
ReadonlyselectedThe currently selected node(s). Two-way bindable via [(selected)].
ReadonlysortOptional comparator for sorting tree nodes at all levels.
When set, nodes are sorted at the root level and all descendants
are recursively sorted using this comparator. The comparator receives
two TreeNode
Pass undefined or null to clear the sort and restore insertion order.
A hierarchical tree-view component driven by an ITreeDatasource.
Supports expand/collapse, single/multiple selection, keyboard navigation (arrows, Enter, Space), ARIA tree pattern, and optional custom node templates via content projection.
Basic usage
With custom template