Module

Halogen.Query.Event

Package
purescript-halogen
Repository
purescript-halogen/purescript-halogen

#eventListener Source

eventListener :: forall a. EventType -> EventTarget -> (Event -> Maybe a) -> Emitter a

Constructs an Emitter for a DOM event. Accepts a function that maps event values to a Maybe-wrapped action, allowing it to filter events if necessary.