New to Kendo UI for AngularStart 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
SelectorExport NameInputsEventsMethods
Not finding the help you need?
Contact Support