JSFiddle - React, Tailwind, and code Playground
by OnaBai
HTML
<link rel="stylesheet" href="http://cdn.kendostatic.com/2014.2.716/styles/kendo.common.min.css">
<link rel="stylesheet" href="http://cdn.kendostatic.com/2014.2.716/styles/kendo.rtl.min.css">
<link rel="stylesheet" href="http://cdn.kendostatic.com/2014.2.716/styles/kendo.default.min.css">
<link rel="stylesheet" href="http://cdn.kendostatic.com/2014.2.716/styles/kendo.dataviz.min.css">
<link rel="stylesheet" href="http://cdn.kendostatic.com/2014.2.716/styles/kendo.dataviz.default.min.css">
<link rel="stylesheet" href="http://cdn.kendostatic.com/2014.2.716/styles/kendo.mobile.all.min.css">
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
<script src="http://cdn.kendostatic.com/2014.2.716/js/kendo.all.min.js"></script>
<div id="treeview"></div>
JavaScript
$("#treeview").kendoTreeView({
template: "<span style='color: #= item.text #'>#= item.text # color:#: item.color #</span>",
dataSource: [
{ text: "green", color: "green", items: [
{ text: "yellow", color: "yellow" },
{ text: "red", color: "red" }
]},{
text: "blue", color: "blue"
}
]
});