Skip to main content
When using the onEvent callback, it will be called for every event available on the widget. The callback should be defined as follows:
onEvent definition example
Here, eventName is a string that states the event that triggered the callback, and the metadata attribute is an object containing relevant information about the event that triggered the callback. It may be possible for some of the metadata attributes to be null.
The metadata object may include more fields over time, so you shouldn’t assume its fields are just the one documented today.

List of events

The events available on the widget are the ones documented on the table below: