Module

React.Basic.DOM.Events

This module defines safe DOM event function and property accessors.

#capture

capture :: forall a. EventFn SyntheticEvent a -> (a -> Effect Unit) -> EventHandler

Create a capturing* EventHandler to send an action when an event occurs. For more complicated event handlers requiring Effect, use handler from React.Basic.Events.

*calls preventDefault and stopPropagation

See also: update, capture_, monitor, React.Basic.Events

#capture_

capture_ :: Effect Unit -> EventHandler

Like capture, but for actions which don't need to extract information from the Event.

See also: update, capture, monitor_

#bubbles

bubbles :: EventFn SyntheticEvent Boolean

General event fields

#eventPhaseNone

#eventPhaseCapturing

#eventPhaseAtTarget

#eventPhaseBubbling

#key

key :: EventFn SyntheticEvent (Maybe String)

Keyboard event fields

#detail

detail :: EventFn SyntheticEvent (Maybe Int)

Mouse event fields

#dataTransfer

Modules