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

PropertyAttributeType
assistant-avatar-enabled
AssistantMessage["interrupts"] | undefined
loading
loading-message

assistantAvatarEnabled

Property
Type
boolean
Attribute
assistant-avatar-enabled
Default value
false

interrupts

Property
Type
AssistantMessage["interrupts"] | undefined

loading

Property
Type
boolean
Attribute
loading
Default value
false

loadingMessage

Property
Type
string
Attribute
loading-message
Default value
""

Methods

MethodSignature
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!");