PromptBoxComponent
Represents the Kendo UI PromptBox component for Angular.
<kendo-promptbox placeholder="Ask a question..."></kendo-promptbox>
Selector
kendo-promptbox
Export Name
Accessible in templates as #kendoPromptBoxInstance="kendoPromptBox"
Inputs
| Name | Type | Default | Description |
|---|---|---|---|
actionButton |
|
|
Controls the visibility and configuration of the Action button in the end affix. |
disabled |
|
|
Enables or disables the PromptBox. |
fileSelectButton |
|
|
Controls the visibility and configuration of the File Select button in the end affix. |
loading |
|
|
Sets the loading state of the Action button. |
maxTextAreaHeight |
|
Sets the maximum height of the textarea in pixels. The textarea resizes automatically until it reaches this height. When the content exceeds this height, a scrollbar appears. | |
mode |
|
|
Sets the mode of the PromptBox. See example. |
placeholder |
|
|
Sets the placeholder text displayed in the PromptBox when it is empty. |
readonly |
|
|
Sets the read-only state of the PromptBox. When set to |
rows |
|
Sets the number of visible text lines in the textarea. Applies only when the | |
speechToTextButton |
|
|
Controls the visibility and configuration of the Speech to Text button in the end affix. |
title |
|
|
Sets the title attribute of the input or textarea element. |
value |
|
Sets the value of the PromptBox. |
Fields
| Name | Type | Default | Description |
|---|---|---|---|
attachments |
|
Provides the currently attached files in the PromptBox component. |
Events
| Name | Type | Description |
|---|---|---|
fileRemove |
|
Fires each time you remove a file from the PromptBox. |
inputBlur |
|
Fires each time the internal input element is blurred. |
inputFocus |
|
Fires each time the internal input element is focused. |
blur |
|
Fires each time the PromptBox gets blurred. |
focus |
|
Fires each time the PromptBox is focused. |
promptAction |
|
Fires each time you click the Action button. |
selectAttachments |
|
Fires each time you select files using the File Select button. |
speechToTextClick |
|
Fires each time you click the Speech to Text button. |
speechToTextEnd |
|
Fires each time the speech recognition service disconnects. |
speechToTextError |
|
Fires when a speech recognition error occurs. |
speechToTextResult |
|
Fires when the speech recognition service returns a result. |
speechToTextStart |
|
Fires each time the speech recognition service begins listening to incoming audio. |
valueChange |
|
Fires each time the value of the PromptBox changes. |
Methods
blur |
|---|
|
Blurs the PromptBox. |
clearAttachments |
|---|
|
Clears all attached files from the PromptBox. |
focus |
|---|
|
Focuses the PromptBox. |