New to Kendo UI for jQueryStart a free 30-day trial

Configuration options for the TextArea component used in the AI Assistant prompt view.

<div id="grid"></div>
<script>
$("#grid").kendoGrid({
   columns: [{ field: "name" }],
   dataSource: [{ name: "Jane Doe" }],
   toolbar: ["aiAssistant"],
   ai: {
     aiAssistant: {
       promptTextArea: {
         resize: "vertical",
         rows: 4,
         placeholder: "Ask AI about your grid data...",
         fillMode: "outline",
         rounded: "medium",
         size: "large",
         maxLength: 1000,
         label: {
           content: "Grid AI Prompt",
         }
       }
     },
     service: "https://demos.telerik.com/service/v2/ai/grid/smart-state"
   }
});
</script>

Specifies the fill mode of the textarea. Available options: "solid", "outline", "flat", "none".

<div id="grid"></div>
<script>
$("#grid").kendoGrid({
  columns: [
    { field: "productName" },
    { field: "category" }
  ],
  dataSource: [
    { productName: "Tea", category: "Beverages" },
    { productName: "Coffee", category: "Beverages" }
  ],
  ai: {
    aiAssistant: {
      promptTextArea: {
        fillMode: "outline"
      }
    }
  }
});
</script>

Specifies the input mode attribute for mobile keyboards.

<div id="grid"></div>
<script>
$("#grid").kendoGrid({
  columns: [
    { field: "productName" },
    { field: "category" }
  ],
  dataSource: [
    { productName: "Tea", category: "Beverages" },
    { productName: "Coffee", category: "Beverages" }
  ],
  ai: {
    aiAssistant: {
      promptTextArea: {
        inputMode: "text"
      }
    }
  }
});
</script>

Specifies the label configuration for the textarea.

<div id="grid"></div>
<script>
$("#grid").kendoGrid({
  columns: [
    { field: "productName" },
    { field: "category" }
  ],
  dataSource: [
    { productName: "Tea", category: "Beverages" },
    { productName: "Coffee", category: "Beverages" }
  ],
  ai: {
    aiAssistant: {
      promptTextArea: {
        label: {
          content: "Enter your prompt",
          floating: true
        }
      }
    }
  }
});
</script>

Specifies the maximum number of characters allowed in the textarea.

<div id="grid"></div>
<script>
$("#grid").kendoGrid({
  columns: [
    { field: "productName" },
    { field: "category" }
  ],
  dataSource: [
    { productName: "Tea", category: "Beverages" },
    { productName: "Coffee", category: "Beverages" }
  ],
  ai: {
    aiAssistant: {
      promptTextArea: {
        maxLength: 500
      }
    }
  }
});
</script>

Specifies the overflow behavior. Available options: "auto", "hidden", "visible", "scroll".

<div id="grid"></div>
<script>
$("#grid").kendoGrid({
  columns: [
    { field: "productName" },
    { field: "category" }
  ],
  dataSource: [
    { productName: "Tea", category: "Beverages" },
    { productName: "Coffee", category: "Beverages" }
  ],
  ai: {
    aiAssistant: {
      promptTextArea: {
        overflow: "auto"
      }
    }
  }
});
</script>

Specifies the placeholder text for the textarea.

<div id="grid"></div>
<script>
$("#grid").kendoGrid({
  columns: [
    { field: "productName" },
    { field: "category" }
  ],
  dataSource: [
    { productName: "Tea", category: "Beverages" },
    { productName: "Coffee", category: "Beverages" }
  ],
  ai: {
    aiAssistant: {
      promptTextArea: {
        placeholder: "Type your AI prompt here..."
      }
    }
  }
});
</script>

Specifies the resize behavior. Available options: "none", "both", "horizontal", "vertical".

<div id="grid"></div>
<script>
$("#grid").kendoGrid({
  columns: [
    { field: "productName" },
    { field: "category" }
  ],
  dataSource: [
    { productName: "Tea", category: "Beverages" },
    { productName: "Coffee", category: "Beverages" }
  ],
  ai: {
    aiAssistant: {
      promptTextArea: {
        resize: "vertical"
      }
    }
  }
});
</script>

Specifies the border radius. Available options: "small", "medium", "large", "full", "none".

<div id="grid"></div>
<script>
$("#grid").kendoGrid({
  columns: [
    { field: "productName" },
    { field: "category" }
  ],
  dataSource: [
    { productName: "Tea", category: "Beverages" },
    { productName: "Coffee", category: "Beverages" }
  ],
  ai: {
    aiAssistant: {
      promptTextArea: {
        rounded: "medium"
      }
    }
  }
});
</script>

Specifies the number of visible text lines.

<div id="grid"></div>
<script>
$("#grid").kendoGrid({
  columns: [
    { field: "productName" },
    { field: "category" }
  ],
  dataSource: [
    { productName: "Tea", category: "Beverages" },
    { productName: "Coffee", category: "Beverages" }
  ],
  ai: {
    aiAssistant: {
      promptTextArea: {
        rows: 4
      }
    }
  }
});
</script>

Specifies the size of the component. Available options: "small", "medium", "large", "none".

<div id="grid"></div>
<script>
$("#grid").kendoGrid({
  columns: [
    { field: "productName" },
    { field: "category" }
  ],
  dataSource: [
    { productName: "Tea", category: "Beverages" },
    { productName: "Coffee", category: "Beverages" }
  ],
  ai: {
    aiAssistant: {
      promptTextArea: {
        size: "large"
      }
    }
  }
});
</script>