loading

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.

Parameters

value Boolean (optional)

Set to true to show loading state, or false to hide it. If omitted, returns the current loading state.

Returns

Boolean The current loading state when called without arguments.

Example - setting loading state

<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>

Example - getting loading state

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

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