content
Gets or sets the content of a Window. When used as a setter, supports chaining.
Parameters
content String|jQuery
(optional)
The content of the Window. Can be an HTML string or a jQuery object.
Returns
String
- If used a getter, the current content of the Window. If used as a setter, the method returns the Window object to support chaining.
Example - getting the content of the Window
<div id="dialog">foo</div>
<script>
$("#dialog").kendoWindow();
var dialog = $("#dialog").data("kendoWindow");
/* The result can be observed in the DevTools(F12) console of the browser. */
console.log(dialog.content()); // logs "foo"
</script>
Example - setting the content of the Window
<div id="dialog"></div>
<script>
$("#dialog").kendoWindow();
var dialog = $("#dialog").data("kendoWindow");
dialog.content("Kendo UI all the things!");
</script>