New to Kendo UI for AngularStart a free 30-day trial

Node Template

The TreeView enables you to customize the content of its nodes.

To customize the appearance of the nodes, use the NodeTemplate directive. The available context variables are:

  • let-dataItem—The data item that the node is bound to.
  • let-index="index"—The index of the node in the current level.

The following example demonstrates how to display an icon beside the text of a TreeView node.

Change Theme
Theme
Loading ...
In this article
Suggested Links
Not finding the help you need?
Contact Support