• Getting Started
  • Components
    • Barcodes
    • Buttons
    • Chartsupdated
    • Conversational UIupdated
    • Data Query
    • Date Inputsupdated
    • Date Math
    • Dialogs
    • Drawing
    • Dropdownsupdated
    • Editor
    • Excel Export
    • File Saver
    • Filter
    • Gantt
    • Gauges
    • Gridupdated
    • Icons
    • Indicators
    • Inputsupdated
    • Labels
    • Layoutupdated
    • ListBox
    • ListView
    • Map
    • Menus
    • Navigation
    • Notification
    • Pager
    • PDF Export
    • PDFViewer
    • PivotGridupdated
    • Popup
    • ProgressBars
    • Ripple
    • Schedulerupdated
    • ScrollView
    • Sortable
    • Spreadsheetupdated
    • ToolBar
    • Tooltips
    • TreeList
    • TreeView
    • Typography
    • Uploads
    • Utilities
  • Styling & Themes
  • Common Features
  • Project Setup
  • Knowledge Base
  • Sample Applications
  • FAQ
  • Troubleshooting
  • Updates
  • Changelogs
New to Kendo UI for Angular? Start a free 30-day trial

AIPromptComponent

Represents the Kendo UI AIPrompt component for Angular.

Selector

kendo-aiprompt

Export Name

Accessible in templates as #kendoAIPromptInstance="kendoAIPrompt"

Inputs

NameTypeDefaultDescription

activeView

number

The active view index of the AIPrompt component.

promptCommands

PromptCommand[]

The collection of commands that will be rendered in the Command view.

promptOutputs

PromptOutput[]

The collection of generated prompt outputs that will be rendered in the Output view.

promptSuggestions

string[]

The collection of suggestions that will be rendered in the Prompt view.

showOutputRating

boolean

false

Specifies if the rating buttons in each Output view card will be rendered. By default, rating buttons are not rendered.

Events

NameTypeDescription

activeViewChange

EventEmitter<number>

Fires when the activeView property of the component is updated. Used to provide a two-way binding for the activeView property.

commandExecute

EventEmitter<CommandExecuteEvent>

Fires each time the user clicks a Command view command. Exposes the selected command as event data.

outputCopy

EventEmitter<PromptOutput>

Fires each time the user clicks any Output view Copy button.

outputRatingChange

EventEmitter<OutputRatingChangeEvent>

Fires each time the user clicks a rating button in any Output view card.

promptRequest

EventEmitter<PromptRequestEvent>

Fires each time the user clicks the Prompt view Generate button or the Output view Retry button. To distinguish the source element, use the event's isRetry field.

Methods

focus

Focuses the first focusable element in the AIPrompt.

In this article

Not finding the help you need?