Last updated 7 days ago
You can send with a value to the Model to trigger interactions and affect their conditions.
dispatchEvent ( eventName: string value?: number | string | boolean | void ): Promise<void>
eventName
value (optional)
Value you want to send along.
number | string | boolean | void
await modelApi.dispatchEvent("temperature", 26);
Examples
Name of the event listener the method will remove.