A selectable and expandable item in an ngTree.
element
HTMLElementA reference to the host element.
id
anyA unique identifier for the tree item.
value
anyThe value of the tree item.
parent
anyThe parent tree root or tree item group.
disabled
anyWhether the tree item is disabled.
selectable
anyWhether the tree item is selectable.
expanded
anyWhether the tree item is expanded.
label
anyOptional label for typeahead. Defaults to the element's textContent.
searchTerm
anySearch term for typeahead.
active
anyWhether the item is active.
level
anyThe level of the current item in a tree.
selected
anyWhether the item is selected.
visible
anyWhether this item is visible due to all of its parents being expanded.
ngOnInit
voidvoidngOnDestroy
voidvoidDescription
A selectable and expandable item in an ngTree.
The ngTreeItem directive represents an individual node within an ngTree. It can be
selected, expanded (if it has children), and disabled. The parent input establishes
the hierarchical relationship within the tree.
<li ngTreeItem [parent]="parentTreeOrGroup" value="item-id" label="Item Label"> Item Label</li>