▾
ESM
import "@arcgis/ai-components/components/arcgis-assistant-message-loading";- Inheritance
- ArcgisAssistantMessageLoading→
HTMLElement
The Assistant Message Loading component displays an in-progress assistant response. Use it to show that the assistant is processing a request.
Properties
| Property | Attribute | Type |
|---|---|---|
| assistant-avatar-enabled | ||
| | AssistantMessage["interrupts"] | undefined | |
| loading | ||
| loading-message |
interrupts
Property
- Type
- AssistantMessage["interrupts"] | undefined
Methods
| Method | Signature |
|---|---|
| inherited | componentOnReady(): Promise<this> |
componentOnReady
inherited Method
- Signature
-
componentOnReady (): Promise<this>
Creates a promise that resolves once the component is fully loaded.
- Returns
- Promise<this>
- Example
- const arcgisAssistantMessageLoading = document.createElement("arcgis-assistant-message-loading");document.body.append(arcgisAssistantMessageLoading);await arcgisAssistantMessageLoading.componentOnReady();console.log("arcgis-assistant-message-loading is ready to go!");