Skip to main content
The widget calls onEvent for every event it emits. Define the callback as follows:
onEvent definition example
eventName is a string naming the event that triggered the callback. metadata is an object with information about that event. Some metadata attributes can be null. The metadata object can contain the following attribute:
The metadata object can include more fields over time, so do not assume the object’s fields are limited to the ones documented today.

List of events

The widget emits the following events: