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

Mode

configuration

Sets the mode of the PromptBox. Available options are "single", "multi", and "auto".

  • single - Displays a single-line input field
  • multi - Displays a multi-line textarea with configurable rows
  • auto - Starts as a single line and expands automatically as the user types

mode

String

Default: "auto"

<div id="promptbox"></div>
<script>
$("#promptbox").kendoPromptBox({
    mode: "single",
    placeholder: "Single line input..."
});
</script>
<div id="promptbox"></div>
<script>
$("#promptbox").kendoPromptBox({
    mode: "multi",
    rows: 5,
    placeholder: "Multi-line input..."
});
</script>
<div id="promptbox"></div>
<script>
$("#promptbox").kendoPromptBox({
    mode: "auto",
    maxTextAreaHeight: 300,
    placeholder: "Start typing and watch it expand..."
});
</script>
Not finding the help you need?
Contact Support