Module

Halogen.Query.Event

#eventListener

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.

Modules