Group that contains children tree items.
element
HTMLElementA reference to the host element.
ownedBy
anyTree item that owns the group.
ngOnInit
void@returns
voidngOnDestroy
void@returns
voidDescription
Group that contains children tree items.
The ngTreeItemGroup structural directive should be applied to an ng-template that
wraps the child ngTreeItem elements. It is used to define a group of children for an
expandable ngTreeItem. The ownedBy input links the group to its parent ngTreeItem.
<li ngTreeItem [value]="'parent-id'"> Parent Item <ul role="group"> <ng-template ngTreeItemGroup [ownedBy]="parentTreeItemRef"> <li ngTreeItem [value]="'child-id'">Child Item</li> </ng-template> </ul></li>
Jump to details