You are viewing an old version of this page. View the current version.
Compare with Current View Page History
« Previous Version 6 Next »
SimpleEventBus is a global variable for the event stream. See Global Client Events for more information on the usage of these methods.
A subscription to an event.
Parameters:
Return:
Example:
const obj = SimpleEventBus.on('myEvent', (data) => { alert(data); }) obj.unsubscribe();
This method starts an event. Use it in client scripts of the widgets.
const obj = SimpleEventBus.emit('myEvent', 'text')
Deletes an event.
Parameter:
const obj = SimpleEventBus.deleteEvent('myEvent')
This method resets all events and subscriptions.Return:
SimpleEventBus.reset()