Tree
Class
A Tree container.
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.
focusMode
anyThe focus strategy used by the tree.
wrap
anyWhether navigation wraps.
skipDisabled
anyWhether to skip disabled items during navigation.
typeaheadDelay
anyTypeahead delay.
value
anySelected item values.
textDirection
anyText direction.
currentType
anyThe aria-current type.
onFocus
void@returns
voidregister
void@returns
voidunregister
void@returns
voidscrollActiveItemIntoView
void@paramoptions
ScrollIntoViewOptions@returns
voidDescription
A Tree container.
Transforms nested lists into an accessible, ARIA-compliant tree structure.
<ul ngTree [(value)]="selectedItems" [multi]="true"> <li ngTreeItem [value]="'leaf1'">Leaf Item 1</li> <li ngTreeItem [value]="'parent1'"> Parent Item 1 <ul ngTreeItemGroup [value]="'parent1'"> <ng-template ngTreeItemGroupContent> <li ngTreeItem [value]="'child1.1'">Child Item 1.1</li> <li ngTreeItem [value]="'child1.2'">Child Item 1.2</li> </ng-template> </ul> </li> <li ngTreeItem [value]="'leaf2'" [disabled]="true">Disabled Leaf Item 2</li></ul>
Jump to details