Guides
Guides

You can access the tree API by using the treeModel attribute on the element:

<tree-root #tree [nodes]="nodes"></tree-root>

  <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 or using Action Mapping.

Here is the Typedoc documentation of the interfaces: