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>
<script src="http://gyoshev/kendo/src/kendo.window.js"></script>
<div id="window0">Content <button id="openWindow1">Open</button></div>
<div id="window1">Content <button id="openWindow0">Open</button></div>
CSS
body {
font: 12px/1.5 Tahoma,sans-serif;
}
JavaScript
$(document).ready(function() {
$("#window0").kendoWindow({
width: "200px",
height: "100px",
title: "Title",
resizable: false,
modal: true,
visible: false
});
$("#openWindow0").click(function(e) {
e.preventDefault();
$("#window0").data("kendoWindow").open().toFront();
});
$("#openWindow1").click(function(e) {
e.preventDefault();
$("#window1").data("kendoWindow").open().toFront();
});
$("#window1").kendoWindow({
width: "200px",
height: "100px",
title: "Title",
resizable: false,
modal: true,
visible: false
}).data("kendoWindow").open();
});