isMultiline

Returns whether the PromptBox is currently in multiline state. This is primarily useful in "auto" mode to determine if the textarea has expanded beyond a single line.

Returns

Boolean True if the PromptBox is in multiline state, false otherwise.

Example

<div id="promptbox"></div>
<button id="check">Check Multiline</button>
<script>
var promptbox = $("#promptbox").kendoPromptBox({
    mode: "auto",
    placeholder: "Type to expand..."
}).data("kendoPromptBox");

$("#check").click(function() {
    console.log("Is multiline:", promptbox.isMultiline());
});
</script>
In this article
isMultiline
Not finding the help you need?
Contact Support