Function handleDomEvents

  • Creates a DOM events processor that enables or disables default DOM event handlers.

    Type Parameters

    • TEvent extends Event<TEvent>

      DOM event type.

    Parameters

    • enable: boolean = true

      Whether to enable default handlers. true to enable (default value, corresponds to specifying { passive: true } as a second argument to EventTarget.addEventListener()), or false to disable (causes listeners to invoke an Event.preventDefault() method prior to event handling).

    Returns ((this, supplier) => OnDomEvent<TEvent>)

    OnDomEvent mapper function.

Generated using TypeDoc