title String|Boolean|Object
default: ""
Gets or sets the title of a Window. When used as a setter, supports chaining.
Parameters
text String
(optional)
The title of the Window.
Returns
String
- If used as a getter, the current Window title. If used as a setter, the method returns the Window object to support chaining.
Example - getting the title of the Window
<div id="dialog"></div>
<script>
$("#dialog").kendoWindow();
var dialog = $("#dialog").data("kendoWindow");
var title = dialog.title();
</script>
Example - setting the title of a Window
<div id="dialog"></div>
<script>
$("#dialog").kendoWindow();
var dialog = $("#dialog").data("kendoWindow");
dialog.title("Hello");
</script>