Module
Pux.DOM.Events
- Package
- purescript-pux
- Repository
- alexmingoia/purescript-pux
#DOMEvent Source
type DOMEvent = Event
Synonym for DOM.Event.Types.Event to distinguish from application events.
#targetValue Source
targetValue :: DOMEvent -> String
Return event.target.value
if it exists, or an empty string if not.
#mapEventHandler Source
mapEventHandler :: forall b a. (a -> b) -> EventHandler (DOMEvent -> a) -> EventHandler (DOMEvent -> b)
Map event handler that returns event type a
to event handler that returns
event type b
.
#onCompositionEnd Source
onCompositionEnd :: forall ev. (DOMEvent -> ev) -> EventHandlers (DOMEvent -> ev)
#onCompositionStart Source
onCompositionStart :: forall ev. (DOMEvent -> ev) -> EventHandlers (DOMEvent -> ev)
#onCompositionUpdate Source
onCompositionUpdate :: forall ev. (DOMEvent -> ev) -> EventHandlers (DOMEvent -> ev)
#onKeyPress Source
onKeyPress :: forall ev. (DOMEvent -> ev) -> EventHandlers (DOMEvent -> ev)
#onContextMenu Source
onContextMenu :: forall ev. (DOMEvent -> ev) -> EventHandlers (DOMEvent -> ev)
#onDoubleClick Source
onDoubleClick :: forall ev. (DOMEvent -> ev) -> EventHandlers (DOMEvent -> ev)
#onDragEnter Source
onDragEnter :: forall ev. (DOMEvent -> ev) -> EventHandlers (DOMEvent -> ev)
#onDragExit Source
onDragExit :: forall ev. (DOMEvent -> ev) -> EventHandlers (DOMEvent -> ev)
#onDragLeave Source
onDragLeave :: forall ev. (DOMEvent -> ev) -> EventHandlers (DOMEvent -> ev)
#onDragOver Source
onDragOver :: forall ev. (DOMEvent -> ev) -> EventHandlers (DOMEvent -> ev)
#onDragStart Source
onDragStart :: forall ev. (DOMEvent -> ev) -> EventHandlers (DOMEvent -> ev)
#onMouseDown Source
onMouseDown :: forall ev. (DOMEvent -> ev) -> EventHandlers (DOMEvent -> ev)
#onMouseEnter Source
onMouseEnter :: forall ev. (DOMEvent -> ev) -> EventHandlers (DOMEvent -> ev)
#onMouseLeave Source
onMouseLeave :: forall ev. (DOMEvent -> ev) -> EventHandlers (DOMEvent -> ev)
#onMouseMove Source
onMouseMove :: forall ev. (DOMEvent -> ev) -> EventHandlers (DOMEvent -> ev)
#onMouseOut Source
onMouseOut :: forall ev. (DOMEvent -> ev) -> EventHandlers (DOMEvent -> ev)
#onMouseOver Source
onMouseOver :: forall ev. (DOMEvent -> ev) -> EventHandlers (DOMEvent -> ev)
#onTouchCancel Source
onTouchCancel :: forall ev. (DOMEvent -> ev) -> EventHandlers (DOMEvent -> ev)
#onTouchEnd Source
onTouchEnd :: forall ev. (DOMEvent -> ev) -> EventHandlers (DOMEvent -> ev)
#onTouchMove Source
onTouchMove :: forall ev. (DOMEvent -> ev) -> EventHandlers (DOMEvent -> ev)
#onTouchStart Source
onTouchStart :: forall ev. (DOMEvent -> ev) -> EventHandlers (DOMEvent -> ev)
#onCanPlayThrough Source
onCanPlayThrough :: forall ev. (DOMEvent -> ev) -> EventHandlers (DOMEvent -> ev)
#onDurationChange Source
onDurationChange :: forall ev. (DOMEvent -> ev) -> EventHandlers (DOMEvent -> ev)
#onEncrypted Source
onEncrypted :: forall ev. (DOMEvent -> ev) -> EventHandlers (DOMEvent -> ev)
#onLoadedData Source
onLoadedData :: forall ev. (DOMEvent -> ev) -> EventHandlers (DOMEvent -> ev)
#onLoadedMetadata Source
onLoadedMetadata :: forall ev. (DOMEvent -> ev) -> EventHandlers (DOMEvent -> ev)
#onLoadStart Source
onLoadStart :: forall ev. (DOMEvent -> ev) -> EventHandlers (DOMEvent -> ev)
#onProgress Source
onProgress :: forall ev. (DOMEvent -> ev) -> EventHandlers (DOMEvent -> ev)
#onRateChange Source
onRateChange :: forall ev. (DOMEvent -> ev) -> EventHandlers (DOMEvent -> ev)
#onTimeUpdate Source
onTimeUpdate :: forall ev. (DOMEvent -> ev) -> EventHandlers (DOMEvent -> ev)
#onVolumeChange Source
onVolumeChange :: forall ev. (DOMEvent -> ev) -> EventHandlers (DOMEvent -> ev)