InlineAIPromptComponent
Represents the Kendo UI InlineAIPrompt component for Angular.
<kendo-inlineaiprompt
placeholder="Enter your prompt..."
[promptOutput]="promptOutput"
(promptRequest)="onPromptRequest($event)">
</kendo-inlineaiprompt>
Selector
kendo-inlineaiprompt
Export Name
Accessible in templates as #kendoInlineAIPromptInstance="kendoInlineAIPrompt"
Inputs
Name | Type | Default | Description |
---|---|---|---|
enableSpeechToText |
|
|
Controls the visibility and settings of the Speech to Text button. |
maxHeight |
|
Sets the maximum height of the component. Accepts a number for pixels or a string for other units. | |
outputActions |
|
|
Sets the output actions that display in the output card.
The default actions are |
placeholder |
|
Sets the placeholder text that appears in the text area when it is empty. | |
popupSettings |
|
Sets the popup settings for the component. | |
promptCommands |
|
Sets the available prompt commands. | |
promptOutput |
|
Sets the output data for the prompt. The output displays as a card above the text area. | |
promptValue |
|
Sets the text of the TextArea. | |
streaming |
|
|
Sets the streaming state of the component.
When set to |
width |
|
|
Sets the width of the component. Accepts a number for pixels or a string for other units. |
Fields
Name | Type | Default | Description |
---|---|---|---|
defaultOutputActions |
|
Represents the configuration of the default output actions.
The default actions are |
Events
Name | Type | Description |
---|---|---|
close |
|
Fires when the component closes, either by clicking outside the popup, clicking the Discard action, or after pressing the Escape key. |
commandExecute |
|
Fires when you click a command. |
outputActionClick |
|
Fires when you click an output action button. |
promptRequest |
|
Fires when you click the send button. |
promptRequestCancel |
|
Fires when you cancel the prompt request by clicking the stop button. |
promptValueChange |
|
Fires when the value of the TextArea changes. |
Methods
focus |
---|
Focuses the TextArea of the Inline AI Prompt. |