Module

React.SyntheticEvent

Synthethic event representation for React.

https://reactjs.org/docs/events.html https://reactjs.org/docs/handling-events.html https://flow.org/en/docs/react/events/

#SyntheticEvent'

type SyntheticEvent' r = (bubbles :: Boolean, cancelable :: Boolean, currentTarget :: NativeEventTarget, defaultPrevented :: Boolean, eventPhase :: Number, isTrusted :: Boolean, nativeEvent :: NativeEvent, target :: NativeEventTarget, timeStamp :: Number, type :: String | r)

#SyntheticAnimationEvent'

type SyntheticAnimationEvent' r = (animationName :: String, elapsedTime :: Number, pseudoElement :: String | r)

#SyntheticClipboardEvent'

type SyntheticClipboardEvent' r = (clipboardData :: NativeDataTransfer | r)

#SyntheticCompositionEvent'

type SyntheticCompositionEvent' r = (data :: String | r)

#SyntheticFocusEvent'

type SyntheticFocusEvent' r = (relatedTarget :: NativeEventTarget | r)

#SyntheticKeyboardEvent'

type SyntheticKeyboardEvent' r = (altKey :: Boolean, charCode :: Int, ctrlKey :: Boolean, getModifierState :: String -> Boolean, key :: String, keyCode :: Number, locale :: String, location :: Number, metaKey :: Boolean, repeat :: Boolean, shiftKey :: Boolean, which :: Number | r)

#SyntheticMouseEvent'

type SyntheticMouseEvent' r = (altKey :: Boolean, button :: Number, buttons :: Number, clientX :: Number, clientY :: Number, ctrlKey :: Boolean, getModifierState :: String -> Boolean, metaKey :: Boolean, pageX :: Number, pageY :: Number, relatedTarget :: NativeEventTarget, screenX :: Number, screenY :: Number, shiftKey :: Boolean | r)

#SyntheticTouchEvent'

type SyntheticTouchEvent' r = (altKey :: Boolean, changedTouches :: NativeTouchList, ctrlKey :: Boolean, getModifierState :: String -> Boolean, metaKey :: Boolean, shiftKey :: Boolean, targetTouches :: NativeTouchList, touches :: NativeTouchList | r)

#SyntheticTransitionEvent'

type SyntheticTransitionEvent' r = (elapsedTime :: Number, propertyName :: String, pseudoElement :: String | r)

#SyntheticUIEvent'

type SyntheticUIEvent' r = (detail :: Number, view :: NativeAbstractView | r)

#SyntheticWheelEvent'

type SyntheticWheelEvent' r = (deltaMode :: Number, deltaX :: Number, deltaY :: Number, deltaZ :: Number | r)

#SyntheticEvent_

#NativeEventTarget

#NativeEvent

#NativeDataTransfer

#NativeAbstractView

#NativeTouchList

#bubbles

bubbles :: forall r. SyntheticEvent_ (bubbles :: Boolean | r) -> Effect Boolean

#cancelable

cancelable :: forall r. SyntheticEvent_ (cancelable :: Boolean | r) -> Effect Boolean

#currentTarget

#defaultPrevented

defaultPrevented :: forall r. SyntheticEvent_ (defaultPrevented :: Boolean | r) -> Effect Boolean

#eventPhase

eventPhase :: forall r. SyntheticEvent_ (eventPhase :: Number | r) -> Effect Number

#isTrusted

isTrusted :: forall r. SyntheticEvent_ (isTrusted :: Boolean | r) -> Effect Boolean

#nativeEvent

nativeEvent :: forall r. SyntheticEvent_ (nativeEvent :: NativeEvent | r) -> Effect NativeEvent

#preventDefault

#isDefaultPrevented

#stopPropagation

#isPropagationStopped

#target

#timeStamp

timeStamp :: forall r. SyntheticEvent_ (timeStamp :: Number | r) -> Effect Number

#type_

type_ :: forall r. SyntheticEvent_ (type :: String | r) -> Effect String

#persist

#animationName

animationName :: forall r. SyntheticEvent_ (animationName :: String | r) -> Effect String

#clipboardData

#data_

data_ :: forall r. SyntheticEvent_ (data :: String | r) -> Effect String

#relatedTarget

#charCode

charCode :: forall r. SyntheticEvent_ (charCode :: Int | r) -> Effect Int

#key

key :: forall r. SyntheticEvent_ (key :: String | r) -> Effect String

#keyCode

keyCode :: forall r. SyntheticEvent_ (keyCode :: Number | r) -> Effect Number

#locale

locale :: forall r. SyntheticEvent_ (locale :: String | r) -> Effect String

#location

location :: forall r. SyntheticEvent_ (location :: Number | r) -> Effect Number

#repeat

repeat :: forall r. SyntheticEvent_ (repeat :: Boolean | r) -> Effect Boolean

#which

which :: forall r. SyntheticEvent_ (which :: Number | r) -> Effect Number

#button

button :: forall r. SyntheticEvent_ (button :: Number | r) -> Effect Number

#buttons

buttons :: forall r. SyntheticEvent_ (buttons :: Number | r) -> Effect Number

#clientX

clientX :: forall r. SyntheticEvent_ (clientX :: Number | r) -> Effect Number

#clientY

clientY :: forall r. SyntheticEvent_ (clientY :: Number | r) -> Effect Number

#pageX

pageX :: forall r. SyntheticEvent_ (pageX :: Number | r) -> Effect Number

#pageY

pageY :: forall r. SyntheticEvent_ (pageY :: Number | r) -> Effect Number

#screenX

screenX :: forall r. SyntheticEvent_ (screenX :: Number | r) -> Effect Number

#screenY

screenY :: forall r. SyntheticEvent_ (screenY :: Number | r) -> Effect Number

#changedTouches

changedTouches :: forall r. SyntheticEvent_ (changedTouches :: NativeTouchList | r) -> Effect NativeTouchList

#targetTouches

targetTouches :: forall r. SyntheticEvent_ (targetTouches :: NativeTouchList | r) -> Effect NativeTouchList

#touches

#altKey

altKey :: forall r. SyntheticEvent_ (altKey :: Boolean | r) -> Effect Boolean

#ctrlKey

ctrlKey :: forall r. SyntheticEvent_ (ctrlKey :: Boolean | r) -> Effect Boolean

#getModifierState

getModifierState :: forall r. String -> SyntheticEvent_ (getModifierState :: String -> Boolean | r) -> Effect Boolean

#metaKey

metaKey :: forall r. SyntheticEvent_ (metaKey :: Boolean | r) -> Effect Boolean

#shiftKey

shiftKey :: forall r. SyntheticEvent_ (shiftKey :: Boolean | r) -> Effect Boolean

#propertyName

propertyName :: forall r. SyntheticEvent_ (propertyName :: String | r) -> Effect String

#pseudoElement

pseudoElement :: forall r. SyntheticEvent_ (pseudoElement :: String | r) -> Effect String

#elapsedTime

elapsedTime :: forall r. SyntheticEvent_ (elapsedTime :: Number | r) -> Effect Number

#detail

detail :: forall r. SyntheticEvent_ (detail :: Number | r) -> Effect Number

#deltaMode

deltaMode :: forall r. SyntheticEvent_ (deltaMode :: Number | r) -> Effect Number

#deltaX

deltaX :: forall r. SyntheticEvent_ (deltaX :: Number | r) -> Effect Number

#deltaY

deltaY :: forall r. SyntheticEvent_ (deltaY :: Number | r) -> Effect Number

#deltaZ

deltaZ :: forall r. SyntheticEvent_ (deltaZ :: Number | r) -> Effect Number

Modules