▾
ESM
import "@arcgis/ai-components/components/arcgis-assistant-message-feedback";- Inheritance
- ArcgisAssistantMessageFeedback→
HTMLElement
The Assistant Message Feedback component collects a thumbs-up or thumbs-down rating for an assistant response. Use it to let users mark a response as helpful or not helpful; each selection emits an update for the associated message.
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 arcgisAssistantMessageFeedback = document.createElement("arcgis-assistant-message-feedback");document.body.append(arcgisAssistantMessageFeedback);await arcgisAssistantMessageFeedback.componentOnReady();console.log("arcgis-assistant-message-feedback is ready to go!");
Events
| Name | Type |
|---|---|