JSFiddle - React, Tailwind, and code Playground
by gyoshev
HTML
<link rel="stylesheet" href="http://cdn.kendostatic.com/2011.3.1129/styles/kendo.common.min.css">
<link rel="stylesheet" href="http://cdn.kendostatic.com/2011.3.1129/styles/kendo.default.min.css">
<script src="http://cdn.kendostatic.com/2011.3.1129/js/kendo.all.min.js"></script>
<div id="tree">
</div>
CSS
body {
font: 12px/1.5 Tahoma,sans-serif;
}
JavaScript
function NodeCollection() {
Array.prototype.slice.call(this);
}
NodeCollection.prototype = {
push: function(item) {
Array.prototype.push.call(this, item);
}
};
var nodes = new NodeCollection();
nodes.push({ text: "foo" });
$("#tree").kendoTreeView({
dataSource: nodes
});