Module

DOM.Simple.EventListener

Package
purescript-dom-simple
Repository
garganscript/purescript-dom-simple

#Callback Source

newtype Callback a

#callback Source

callback :: forall a. (a -> Effect Unit) -> Callback a

#dispatchEvent Source

dispatchEvent :: forall l e. IsEventListener l => l -> e -> Effect Unit

#addEventListener Source

addEventListener :: forall listener event. IsEventListener listener => IsEvent event => listener -> String -> Callback event -> Effect Unit

A little unsafe

#removeEventListener Source

removeEventListener :: forall listener event. IsEventListener listener => IsEvent event => listener -> String -> Callback event -> Effect Unit