API
You can access the tree API by using the treeModel
attribute on the element:
<Tree #tree [nodes]="nodes"></Tree>
<button (click)="tree.treeModel.focusNextNode()">next node</button>
<button (click)="tree.treeModel.focusPreviousNode()">previous node</button>
<button (click)="tree.treeModel.focusDrillDown()">drill down</button>
<button (click)="tree.treeModel.focusDrillUp()">drill up</button>
Or by accessing the treeNode that is passed through Events.
Checkout the Typedoc documentation of the ITreeModel and ITreeNode interfaces.
Updated less than a minute ago
Did this page help you?