ESM
import "@arcgis/ai-components/components/arcgis-assistant-chat-entry";- Inheritance
- ArcgisAssistantChatEntry→
HTMLElement
Provides the input bar and submit or cancel behavior. Use it to collect prompts and emit submit events. Offers keyboard submit/history behavior, entry action slots, and optional voice-input integration.
Properties
| Property | Attribute | Type |
|---|---|---|
| awaiting-response | ||
| disabled | ||
| entry-placeholder | ||
| input-value | ||
| keyboard-shortcuts-disabled | ||
| | ||
| status | "error" | "ready" | "working" | undefined | |
| voice-input-enabled |
keyboardShortcutsDisabled
Property
- Type
- boolean
- Attribute
- keyboard-shortcuts-disabled
- Default value
- false
messages
Property
- Type
- Collection<ChatMessage>
Methods
| Method | Signature |
|---|---|
| inherited | componentOnReady(): Promise<this> |
| submitMessage(): Promise<void> |
componentOnReady
inherited Method
- Signature
-
componentOnReady (): Promise<this>
Inherited from: this
Creates a promise that resolves once the component is fully loaded.
- Returns
- Promise<this>
- Example
- const arcgisAssistantChatEntry = document.createElement("arcgis-assistant-chat-entry");document.body.append(arcgisAssistantChatEntry);await arcgisAssistantChatEntry.componentOnReady();console.log("arcgis-assistant-chat-entry is ready to go!");
Events
| Name | Type |
|---|---|
Slots
| Name | Description |
|---|---|
| Slot for adding actions to the start of the entry area. | |
| Slot for adding actions to the end of the entry area. |