ESM
import "@arcgis/ai-components/components/arcgis-assistant-message-block";- Inheritance
- ArcgisAssistantMessageBlock→
HTMLElement
Renders one structured assistant block. Offers default block rendering for supported suggestion-style blocks.
Properties
| Property | Attribute | Type |
|---|---|---|
| |
block
Property
- Type
- UXSuggestion | undefined
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 arcgisAssistantMessageBlock = document.createElement("arcgis-assistant-message-block");document.body.append(arcgisAssistantMessageBlock);await arcgisAssistantMessageBlock.componentOnReady();console.log("arcgis-assistant-message-block is ready to go!");