Guides

Calling API Methods

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

Demo

<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.

You can find the complete API for TreeModel here:
TreeModel

And the complete API for TreeNode here:
TreeNode


Did this page help you?