New to Kendo UI for jQuery? Start a free 30-day trial

Loading

methods

Gets or sets the loading state of the PromptBox. When called without arguments, returns the current loading state. When called with a boolean, sets the loading state.

Returns:Boolean

The current loading state when called without arguments.

<div id="promptbox"></div>
<script>
var promptbox = $("#promptbox").kendoPromptBox({
    placeholder: "Send a message..."
}).data("kendoPromptBox");

promptbox.loading(true);

setTimeout(function() {
    promptbox.loading(false);
}, 3000);
</script>
<div id="promptbox"></div>
<script>
var promptbox = $("#promptbox").kendoPromptBox({
    placeholder: "Send a message..."
}).data("kendoPromptBox");

promptbox.loading(true);
console.log(promptbox.loading()); // true
</script>
Not finding the help you need?
Contact Support