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 = SyntheticEvent_ (SyntheticEvent' ())
#SyntheticInputEvent Source
type SyntheticInputEvent = SyntheticEvent_ (SyntheticUIEvent' (SyntheticEvent' ()))
#SyntheticUIEvent Source
type SyntheticUIEvent = SyntheticEvent_ (SyntheticUIEvent' (SyntheticEvent' ()))
#SyntheticEvent' Source
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' Source
type SyntheticAnimationEvent' r = (animationName :: String, elapsedTime :: Number, pseudoElement :: String | r)
#SyntheticClipboardEvent' Source
type SyntheticClipboardEvent' r = (clipboardData :: NativeDataTransfer | r)
#SyntheticCompositionEvent' Source
type SyntheticCompositionEvent' r = (data :: String | r)
#SyntheticFocusEvent' Source
type SyntheticFocusEvent' r = (relatedTarget :: NativeEventTarget | r)
#SyntheticMouseEvent' Source
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' Source
type SyntheticTouchEvent' r = (altKey :: Boolean, changedTouches :: NativeTouchList, ctrlKey :: Boolean, getModifierState :: String -> Boolean, metaKey :: Boolean, shiftKey :: Boolean, targetTouches :: NativeTouchList, touches :: NativeTouchList | r)
#SyntheticTransitionEvent' Source
type SyntheticTransitionEvent' r = (elapsedTime :: Number, propertyName :: String, pseudoElement :: String | r)
#SyntheticUIEvent' Source
type SyntheticUIEvent' r = (detail :: Number, view :: NativeAbstractView | r)
#SyntheticWheelEvent' Source
type SyntheticWheelEvent' r = (deltaMode :: Number, deltaX :: Number, deltaY :: Number, deltaZ :: Number | r)
#NativeEventTarget Source
data NativeEventTarget :: Type
#NativeEvent Source
data NativeEvent :: Type
#NativeDataTransfer Source
data NativeDataTransfer :: Type
#NativeAbstractView Source
data NativeAbstractView :: Type
#NativeTouchList Source
data NativeTouchList :: Type
#cancelable Source
cancelable :: forall r. SyntheticEvent_ (cancelable :: Boolean | r) -> Effect Boolean
#currentTarget Source
currentTarget :: forall r. SyntheticEvent_ (currentTarget :: NativeEventTarget | r) -> Effect NativeEventTarget
#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
preventDefault :: forall r. SyntheticEvent_ r -> Effect Unit
#isDefaultPrevented Source
isDefaultPrevented :: forall r. SyntheticEvent_ r -> Effect Boolean
#stopPropagation Source
stopPropagation :: forall r. SyntheticEvent_ r -> Effect Unit
#isPropagationStopped Source
isPropagationStopped :: forall r. SyntheticEvent_ r -> Effect Boolean
#target Source
target :: forall r. SyntheticEvent_ (target :: NativeEventTarget | r) -> Effect NativeEventTarget
#animationName Source
animationName :: forall r. SyntheticEvent_ (animationName :: String | r) -> Effect String
#clipboardData Source
clipboardData :: forall r. SyntheticEvent_ (clipboardData :: NativeDataTransfer | r) -> Effect NativeDataTransfer
#changedTouches Source
changedTouches :: forall r. SyntheticEvent_ (changedTouches :: NativeTouchList | r) -> Effect NativeTouchList
#targetTouches Source
targetTouches :: forall r. SyntheticEvent_ (targetTouches :: NativeTouchList | r) -> Effect NativeTouchList
#touches Source
touches :: forall r. SyntheticEvent_ (touches :: NativeTouchList | r) -> Effect NativeTouchList
#getModifierState Source
getModifierState :: forall r. String -> SyntheticEvent_ (getModifierState :: String -> 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
#view Source
view :: forall r. SyntheticEvent_ (view :: NativeAbstractView | r) -> Effect NativeAbstractView