New to Kendo UI for AngularStart a free 30-day trial

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:

html
<kendo-promptbox placeholder="Ask a question..."></kendo-promptbox>

Inputs

Controls the visibility and configuration of the Action button in the end affix.

Default:

true

disabled

boolean

Enables or disables the PromptBox.

Default:

false

Controls the visibility and configuration of the File Select button in the end affix.

Default:

false

loading

boolean

Sets the loading state of the Action button.

Default:

false

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.

Default:

'auto'

Sets the placeholder text displayed in the PromptBox when it is empty.

Default:

''

readonly

boolean

Sets the read-only state of the PromptBox. When set to true, the PromptBox content cannot be modified but remains accessible.

Default:

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.

Default:

true

title

string

Sets the title attribute of the input or textarea element.

Default:

''

value

string

Sets the value of the PromptBox.

Fields

attachments

FileInfo[]

Provides the currently attached files in the PromptBox component.

Default:

[]

Events

Fires each time the PromptBox gets blurred.

Fires each time you remove a file from the PromptBox.

Fires each time the PromptBox is focused.

Fires each time the internal input element is blurred.

Fires each time the internal input element is focused.

Fires each time you click the Action button.

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.

Fires each time the value of the PromptBox changes.

Methods

Blurs the PromptBox.

Clears all attached files from the PromptBox.

Focuses the PromptBox.