OfEventType

final class OfEventType[F[_], E <: Event](_unused: Boolean) extends AnyVal
class AnyVal
trait Matchable
class Any

Value members

Concrete methods

def install[G[_], P, C <: Children, S, B <: OnUnmountF[F], U <: UpdateSnapshot](eventType: String, listener: MountedPure[P, S, B] => E => G[Unit], target: MountedImpure[P, S, B] => EventTarget, useCapture: Boolean)(F: Dispatch[F], G: Dispatch[G]): (P, C, S, B, U) => U

Install an event listener when a component is mounted. Automatically uninstalls the event listener when the component is unmounted.

Install an event listener when a component is mounted. Automatically uninstalls the event listener when the component is unmounted.

Value Params
eventType

A string representing the event type to listen for.

useCapture

If true, useCapture indicates that the user wishes to initiate capture. After initiating capture, all events of the specified type will be dispatched to the registered listener before being dispatched to any EventTarget beneath it in the DOM tree. Events which are bubbling upward through the tree will not trigger a listener designated to use capture.