JSFiddle - React, Tailwind, and code Playground

by valchev

HTML

<script src="http://cdn.kendostatic.com/2012.1.515/js/kendo.all.min.js"></script>
<link rel="stylesheet" href="http://cdn.kendostatic.com/2012.1.322/styles/kendo.common.min.css">
<link rel="stylesheet" href="http://cdn.kendostatic.com/2012.1.322/styles/kendo.default.min.css">
<div id="foo"></div>
<script type="text/x-kendo-tmpl" id="templateUploadPicture">
    <div id="${id}">
    # $(bar).appendTo("body") #
    </div>
</script>

CSS

canvas {
 margin: 1px solid green;   
}

JavaScript

var foo = document.createElement('canvas'),
    template = kendo.template($("#templateUploadPicture").html());

var dataSource = new kendo.data.DataSource({
    data: [{bar: foo, id: "canvas1"}],
    change: function() {
     $("#foo").html(kendo.render(template, this.view()));   
    }
});

dataSource.read();