▾
ESM
import "@arcgis/ai-components/components/arcgis-assistant-user-message";- Inheritance
- ArcgisAssistantUserMessage→
HTMLElement
The Assistant User Message component renders one user-authored chat message. Use it in a custom message-list layout to show what the user submitted.
Properties
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 arcgisAssistantUserMessage = document.createElement("arcgis-assistant-user-message");document.body.append(arcgisAssistantUserMessage);await arcgisAssistantUserMessage.componentOnReady();console.log("arcgis-assistant-user-message is ready to go!");