enable

Enables or disables the PromptBox.

Parameters

enable Boolean

Set to true to enable the PromptBox, or false to disable it.

Example

<div id="promptbox"></div>
<button id="toggle">Toggle</button>
<script>
var promptbox = $("#promptbox").kendoPromptBox({
    placeholder: "Toggle enabled state..."
}).data("kendoPromptBox");

var enabled = true;
$("#toggle").click(function() {
    enabled = !enabled;
    promptbox.enable(enabled);
});
</script>
In this article
enable
Not finding the help you need?
Contact Support