Interface Widget<T>

Widget interface. Every widget implements this interface.

Type Parameters

Hierarchy

  • Widget

Methods

  • Add a listener for a widget event.

    Type Parameters

    • KEventName extends string | number | symbol

    Parameters

    • type: KEventName
    • callback: ((data) => void)

      function to execute when the event is received.

    Returns void

  • Removes an event listener for a widget event.

    Type Parameters

    • KEventName extends string | number | symbol

    Parameters

    • type: KEventName

      Widget specific event name.

    Returns void

Generated using TypeDoc