template String|Function

Template for rendering each node.

Example

<div id="treeview"></div>
<script>
$("#treeview").kendoTreeView({
  template: "#= item.text # (#= item.inStock #)",
  dataSource: [
    { text: "foo", inStock: 7, items: [
      { text: "bar", inStock: 2 },
      { text: "baz", inStock: 5 }
    ] }
  ]
});
</script>
In this article