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");
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>
In this article
Not finding the help you need? Improve this article