Listen eventbus event.
Optional options: EventBusAttachOptionsRemove event listener specified by the listener argument for the event specified by the eventName argument.
Remove all event listeners for the event specified by the eventName argument.
Use the dispatch method to raise an event.
The image viewer event bus.
Description
Use the event bus to listen and receive certain specific "events". Available events are: "before-open", "after-open", "before-close", "after-close", "zoom-changed", "frame-index-changed", "animation-started", "animation-stopped".
Example
Example