New to Kendo UI for Angular? Start 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.

Example
View Source
Change Theme:

In this article

Not finding the help you need?