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' :: Row Type -> Row Type
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' :: Row Type -> Row Type
type SyntheticAnimationEvent' r = (animationName :: String, elapsedTime :: Number, pseudoElement :: String | r)
#SyntheticClipboardEvent' Source
type SyntheticClipboardEvent' :: Row Type -> Row Type
type SyntheticClipboardEvent' r = (clipboardData :: NativeDataTransfer | r)
#SyntheticCompositionEvent' Source
type SyntheticCompositionEvent' :: Row Type -> Row Type
type SyntheticCompositionEvent' r = (data :: String | r)
#SyntheticFocusEvent' Source
type SyntheticFocusEvent' :: Row Type -> Row Type
type SyntheticFocusEvent' r = (relatedTarget :: NativeEventTarget | r)
#SyntheticKeyboardEvent' Source
type SyntheticKeyboardEvent' :: Row Type -> Row Type
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' Source
type SyntheticMouseEvent' :: Row Type -> Row Type
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' :: Row Type -> Row Type
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' :: Row Type -> Row Type
type SyntheticTransitionEvent' r = (elapsedTime :: Number, propertyName :: String, pseudoElement :: String | r)
#SyntheticUIEvent' Source
type SyntheticUIEvent' :: Row Type -> Row Type
type SyntheticUIEvent' r = (detail :: Number, view :: NativeAbstractView | r)
#SyntheticWheelEvent' Source
type SyntheticWheelEvent' :: Row Type -> Row Type
type SyntheticWheelEvent' r = (deltaMode :: Number, deltaX :: Number, deltaY :: Number, deltaZ :: Number | r)
#SyntheticEvent_ Source
data SyntheticEvent_ :: Row Type -> Type
data SyntheticEvent_ t0
#NativeEventTarget Source
data NativeEventTarget
#NativeEvent Source
data NativeEvent
#NativeDataTransfer Source
data NativeDataTransfer
#NativeAbstractView Source
data NativeAbstractView
#NativeTouchList Source
data NativeTouchList
#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