Edit this page

content

Gets or set the content of a window. Supports chaining when used as a setter.

Parameters

content String |jQuery (optional)

The content of the Window. Can be an HTML string or jQuery object.

Returns

String The current window content, if used as a getter. If used as a setter, the method will return the window object to support chaining.

Example - get the window content

<div id="dialog">foo</div>
<script>
$("#dialog").kendoWindow();
var dialog = $("#dialog").data("kendoWindow");
console.log(dialog.content()); // logs "foo"
</script>

Example - set the window content

<div id="dialog"></div>
<script>
$("#dialog").kendoWindow();
var dialog = $("#dialog").data("kendoWindow");
dialog.content("Kendo UI all the things!");
</script>
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy