AIPromptComponent
Represents the Kendo UI AIPrompt component for Angular.
Selector
kendo-aiprompt
Export Name
Accessible in templates as #kendoAIPromptInstance="kendoAIPrompt"
Inputs
Name | Type | Default | Description |
---|---|---|---|
activeView |
|
The active view index of the AIPrompt component. | |
promptCommands |
|
The collection of commands that will be rendered in the Command view. | |
promptOutputs |
|
The collection of generated prompt outputs that will be rendered in the Output view. | |
promptSuggestions |
|
The collection of suggestions that will be rendered in the Prompt view. | |
showOutputRating |
|
|
Specifies if the rating buttons in each Output view card will be rendered. By default, rating buttons are not rendered. |
Events
Name | Type | Description |
---|---|---|
activeViewChange |
|
Fires when the |
commandExecute |
|
Fires each time the user clicks a Command view command. Exposes the selected command as event data. |
outputCopy |
|
Fires each time the user clicks any Output view Copy button. |
outputRatingChange |
|
Fires each time the user clicks a rating button in any Output view card. |
promptRequest |
|
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 |
Methods
focus |
---|
Focuses the first focusable element in the AIPrompt. |