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.