This API provides the details and functionality associated with publishing and subscribing to events.
Accessed from the window at window.sas.vi.event.
window.sas.vi.event
window.sas.vi.event.publish("eventName", payload); Copy
window.sas.vi.event.publish("eventName", payload);
{string} Name of the event to publish.
Optional
{any} Data passed to all subscribers.
Publishes an event for subscribers to consume.
Name of the event to subscribe to.
Invoked when the subscription is triggered by an event. Has access to the event's payload.
The subscription being made to the event.
Subscribes to an event and registers a function to be called on any future published events. If the eventName does not exist, it is created.
{Subscription} Subscription to stop.
Unsubscribe from a given subscription and stop listening for events.
This API provides the details and functionality associated with publishing and subscribing to events.
Accessed from the window at
window.sas.vi.event
.Example