Component event dispatcher is used to listen for and dispatch component events.

It is available in bootstrap context context.

By default treats a component element as event target.

Hierarchy

  • ComponentEventDispatcher

Methods

Methods

  • Dispatches the DOM event for the given component.

    Returns

    true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, or false otherwise.

    Parameters

    • event: Event

      An event to dispatch.

    Returns boolean

  • Returns an OnDomEvent sender of DOM events of the given type.

    Returns

    A producer of DOM event events of the given type.

    Type Parameters

    • TEvent extends Event<TEvent>

      DOM event type.

    Parameters

    • type: string

      An event type to listen for.

    Returns OnDomEvent<TEvent>

Generated using TypeDoc