Links

Events

Once you have installed Onset on your site, the widget emits events you can subscribe to.

Subscribe

window.onsetWidget.on('ready', () => {
// widget is ready to go
});

Unsubscribe

window.onsetWidget.off('ready');

ready

Triggered when the widget is successfully loaded and ready.

new_release

Triggered when there is a new release.

read

Triggered when the new release is read.

show

Triggered when the widget is shown.

hide

Triggered when the widget is hidden.

update

Triggered when the widget is updated.