ESM
import "@arcgis/ai-components/components/arcgis-assistant-user-message";- Inheritance
- ArcgisAssistantUserMessage→
HTMLElement
Renders one user-authored chat message row. Use it for displaying what the user sent. Offers a simple user message presentation primitive for custom message-list rendering.
Properties
Methods
| Method | Signature |
|---|---|
| inherited | componentOnReady(): Promise<this> |
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 arcgisAssistantUserMessage = document.createElement("arcgis-assistant-user-message");document.body.append(arcgisAssistantUserMessage);await arcgisAssistantUserMessage.componentOnReady();console.log("arcgis-assistant-user-message is ready to go!");