PromptBoxComponent
Represents the Kendo UI PromptBox component for Angular.
Definition
Package:@progress/kendo-angular-conversational-ui
Selector:kendo-promptbox
Export Name:Accessible in templates as #kendoPromptBoxInstance="kendoPromptBox"
Syntax:
<kendo-promptbox placeholder="Ask a question..."></kendo-promptbox>
Inputs
actionButton
boolean | ActionButtonSettings
Controls the visibility and configuration of the Action button in the end affix.
true
disabled
boolean
Enables or disables the PromptBox.
false
fileSelectButton
boolean | FileSelectButtonSettings
Controls the visibility and configuration of the File Select button in the end affix.
false
loading
boolean
Sets the loading state of the Action button.
false
maxTextAreaHeight
number
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.
Sets the mode of the PromptBox. See example.
'auto'
placeholder
string
Sets the placeholder text displayed in the PromptBox when it is empty.
''
readonly
boolean
Sets the read-only state of the PromptBox. When set to true, the PromptBox content cannot be modified but remains accessible.
false
rows
number
Sets the number of visible text lines in the textarea. Applies only when the mode is set to multi.
speechToTextButton
boolean | SpeechToTextButtonSettings
Controls the visibility and configuration of the Speech to Text button in the end affix.
true
title
string
Sets the title attribute of the input or textarea element.
''
value
string
Sets the value of the PromptBox.
Fields
attachments
FileInfo[]
Provides the currently attached files in the PromptBox component.
[]
Events
blur
EventEmitter<void>
Fires each time the PromptBox gets blurred.
fileRemove
EventEmitter<FileInfo>
Fires each time you remove a file from the PromptBox.
focus
EventEmitter<void>
Fires each time the PromptBox is focused.
inputBlur
EventEmitter<void>
Fires each time the internal input element is blurred.
inputFocus
EventEmitter<void>
Fires each time the internal input element is focused.
Fires each time you click the Action button.
selectAttachments
EventEmitter<SelectEvent>
Fires each time you select files using the File Select button.
Fires each time you click the Speech to Text button.
Fires each time the speech recognition service disconnects.
speechToTextError
EventEmitter<SpeechToTextErrorEvent>
Fires when a speech recognition error occurs.
speechToTextResult
EventEmitter<SpeechToTextResultEvent>
Fires when the speech recognition service returns a result.
Fires each time the speech recognition service begins listening to incoming audio.
valueChange
EventEmitter<string>
Fires each time the value of the PromptBox changes.
Methods
Blurs the PromptBox.
Clears all attached files from the PromptBox.
Focuses the PromptBox.