Module

React.SyntheticEvent

Package
purescript-react
Repository
purescript-contrib/purescript-react

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' Source

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

#SyntheticAnimationEvent' Source

type SyntheticAnimationEvent' :: Row Type -> Row Typetype SyntheticAnimationEvent' r = (animationName :: String, elapsedTime :: Number, pseudoElement :: String | r)

#SyntheticClipboardEvent' Source

#SyntheticCompositionEvent' Source

#SyntheticFocusEvent' Source

type SyntheticFocusEvent' :: Row Type -> Row Typetype SyntheticFocusEvent' r = (relatedTarget :: NativeEventTarget | r)

#SyntheticKeyboardEvent' Source

type SyntheticKeyboardEvent' :: Row Type -> Row Typetype 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' Source

type SyntheticMouseEvent' :: Row Type -> Row Typetype 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' Source

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

#SyntheticTransitionEvent' Source

type SyntheticTransitionEvent' :: Row Type -> Row Typetype SyntheticTransitionEvent' r = (elapsedTime :: Number, propertyName :: String, pseudoElement :: String | r)

#SyntheticUIEvent' Source

type SyntheticUIEvent' :: Row Type -> Row Typetype SyntheticUIEvent' r = (detail :: Number, view :: NativeAbstractView | r)

#SyntheticWheelEvent' Source

type SyntheticWheelEvent' :: Row Type -> Row Typetype SyntheticWheelEvent' r = (deltaMode :: Number, deltaX :: Number, deltaY :: Number, deltaZ :: Number | r)

#SyntheticEvent_ Source

#NativeEventTarget Source

#NativeEvent Source

#NativeDataTransfer Source

#NativeAbstractView Source

#NativeTouchList Source

#bubbles Source

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

#cancelable Source

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

#currentTarget Source

#defaultPrevented Source

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

#eventPhase Source

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

#isTrusted Source

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

#nativeEvent Source

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

#preventDefault Source

#isDefaultPrevented Source

#stopPropagation Source

#isPropagationStopped Source

#timeStamp Source

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

#type_ Source

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

#persist Source

#animationName Source

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

#clipboardData Source

#data_ Source

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

#relatedTarget Source

#charCode Source

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

#key Source

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

#keyCode Source

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

#locale Source

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

#location Source

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

#repeat Source

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

#which Source

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

#button Source

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

#buttons Source

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

#clientX Source

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

#clientY Source

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

#pageX Source

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

#pageY Source

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

#screenX Source

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

#screenY Source

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

#changedTouches Source

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

#targetTouches Source

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

#touches Source

#altKey Source

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

#ctrlKey Source

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

#getModifierState Source

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

#metaKey Source

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

#shiftKey Source

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

#propertyName Source

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

#pseudoElement Source

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

#elapsedTime Source

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

#detail Source

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

#deltaMode Source

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

#deltaX Source

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

#deltaY Source

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

#deltaZ Source

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