A container that transforms nested lists into an accessible, ARIA-compliant tree structure. It manages the overall state of the tree, including selection, expansion, and keyboard navigation.
element
HTMLElementA reference to the host element.
id
anyA unique identifier for the tree.
orientation
anyOrientation of the tree.
multi
anyWhether multi-selection is allowed.
disabled
anyWhether the tree is disabled.
selectionMode
anyThe selection strategy used by the tree.
explicit: Items are selected explicitly by the user (e.g., via click or spacebar).follow: The focused item is automatically selected.
focusMode
anyThe focus strategy used by the tree.
roving: Focus is moved to the active item usingtabindex.activedescendant: Focus remains on the tree container, andaria-activedescendantis used to indicate the active item.
wrap
anyWhether navigation wraps.
softDisabled
anyWhether to allow disabled items to receive focus. When true, disabled items are
focusable but not interactive. When false, disabled items are skipped during navigation.
typeaheadDelay
anyThe delay in seconds before the typeahead search is reset.
values
anyThe values of the currently selected items.
textDirection
anyText direction.
currentType
anyThe aria-current type. It can be used in navigation trees to indicate the currently active item.
See https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Attributes/aria-current for more details.
scrollActiveItemIntoView
voidScrollIntoViewOptionsvoidDescription
A container that transforms nested lists into an accessible, ARIA-compliant tree structure. It manages the overall state of the tree, including selection, expansion, and keyboard navigation.
<ul ngTree [(value)]="selectedItems" [multi]="true">
<ng-template
[ngTemplateOutlet]="treeNodes"
[ngTemplateOutletContext]="{nodes: treeData, parent: tree}"
/>
</ul>
<ng-template #treeNodes let-nodes="nodes" let-parent="parent">