IEventListener

Interface IEventListener<T>

A listener for webvis events that can be registered via the EventAPI.

The listener consumes an event that extends WebVisEvent and is expected to not return anything. If the listener returns a promise, the listener execution mechanism will not wait for the promise to resolve.

The event's type property specifies its EventType and determines its structure.

Type Parameters

  • T extends WebVisEvent = WebVisEvent

    The type of event that the listener listens to. This can also be a union of multiple event types.

  • Parameters

    • event: T

      The event that has been fired.

    Returns void


Did you find this page useful? Please give it a rating:
Thank you for rating this page!
Any issues or feedback?
What kind of problem would you like to report?
Please tell us more about what's wrong: