Package

japgolly.scalajs

react

Permalink

package react

Linear Supertypes
ReactEventTypes, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. react
  2. ReactEventTypes
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. type BackendScope[P, S] = MountedWithRoot[CallbackTo, P, S, P, S]

    Permalink
  2. type Callback = CallbackTo[Unit]

    Permalink
  3. final case class CallbackKleisli[A, B](run: (A) ⇒ CallbackTo[B]) extends AnyVal with Product with Serializable

    Permalink

    A => CallbackTo[B] aka Kleisli[CallbackTo, A, B] aka ReaderT[A, CallbackTo, B].

    A => CallbackTo[B] aka Kleisli[CallbackTo, A, B] aka ReaderT[A, CallbackTo, B].

    Never heard of Kleisli? Basically, a "Kleisli triple" is a function with the shape A => M[B]. In this case, the M is hard-coded to CallbackTo.

    This is hard-coded to CallbackTo for the same reasons as CallbackOption and for the same reasons that CallbackTo exists.

    Since

    1.2.0

  4. final class CallbackOption[A] extends AnyVal

    Permalink

    Callback that can short-circuit along the way when conditions you specify, aren't met.

    Callback that can short-circuit along the way when conditions you specify, aren't met.

    Especially useful for event handlers such as key handlers, drag-and-drop handlers, etc, where you check a condition, perform an effect, check another condition, perform another effect, etc.

    This is meant to be lightweight, and be immediately useful without the typical pain of imports, implicit conversions and extension methods then normally accompany monad transforms in Scala.

    For a more generic (i.e. beyond Option) or comprehensive monad transformer use Scalaz or similar.

  5. final class CallbackTo[A] extends AnyVal

    Permalink

    A function to be executed later, usually by scalajs-react in response to some kind of event.

    A function to be executed later, usually by scalajs-react in response to some kind of event.

    The purpose of this class is to lift effects into the type system, and use the compiler to ensure safety around callbacks (without depending on an external library like Scalaz).

    () => Unit is replaced by Callback. Similarly, ReactEvent => Unit is replaced by ReactEvent => Callback.

    A

    The type of result produced when the callback is invoked.

    Since

    0.10.0

  6. sealed trait Children extends AnyRef

    Permalink

    Describes how a component uses .props.children.

  7. sealed abstract class CtorType[-P, +U] extends AnyRef

    Permalink
  8. type GenericComponent[P, CT[-p, +u] <: CtorType[p, u], U] = ComponentSimple[P, CT, U]

    Permalink
  9. type JsComponent[P <: Object, S <: Object, CT[-p, +u] <: CtorType[p, u]] = react.component.Js.ComponentWithRoot[P, CT, UnmountedWithRawType[P, S, RawMounted[P, S]], P, CT, UnmountedWithRawType[P, S, RawMounted[P, S]]]

    Permalink
  10. type JsComponentWithFacade[P <: Object, S <: Object, F <: Object, CT[-p, +u] <: CtorType[p, u]] = react.component.Js.ComponentWithRoot[P, CT, UnmountedWithRawType[P, S, RawMounted[P, S] with F], P, CT, UnmountedWithRawType[P, S, RawMounted[P, S] with F]]

    Permalink
  11. type JsFnComponent[P <: Object, CT[-p, +u] <: CtorType[p, u]] = react.component.JsFn.ComponentWithRoot[P, CT, Unmounted[P], P, CT, Unmounted[P]]

    Permalink
  12. type Key = |[String, JsNumber]

    Permalink
  13. final class ModStateFn[F[_], S] extends AbstractFunction2[(S) ⇒ Option[S], Callback, F[Unit]] with ModState[F, S]

    Permalink
  14. type ModStateFnImpure[S] = ModStateFn[Id, S]

    Permalink
  15. type ModStateFnPure[S] = ModStateFn[CallbackTo, S]

    Permalink
  16. final class ModStateWithPropsFn[F[_], P, S] extends AbstractFunction2[(S, P) ⇒ Option[S], Callback, F[Unit]] with ModStateWithProps[F, P, S]

    Permalink
  17. type ModStateWithPropsFnImpure[P, S] = ModStateWithPropsFn[Id, P, S]

    Permalink
  18. type ModStateWithPropsFnPure[P, S] = ModStateWithPropsFn[CallbackTo, P, S]

    Permalink
  19. final class PropsChildren extends AnyVal

    Permalink
  20. final type ReactAnimationEvent = SyntheticAnimationEvent[Node]

    Permalink
    Definition Classes
    ReactEventTypes
  21. final type ReactAnimationEventFrom[+N <: Node] = SyntheticAnimationEvent[N]

    Permalink
    Definition Classes
    ReactEventTypes
  22. final type ReactAnimationEventFromHtml = SyntheticAnimationEvent[Element]

    Permalink
    Definition Classes
    ReactEventTypes
  23. final type ReactAnimationEventFromInput = SyntheticAnimationEvent[Input]

    Permalink
    Definition Classes
    ReactEventTypes
  24. final type ReactAnimationEventFromTextArea = SyntheticAnimationEvent[TextArea]

    Permalink
    Definition Classes
    ReactEventTypes
  25. final type ReactClipboardEvent = SyntheticClipboardEvent[Node]

    Permalink
    Definition Classes
    ReactEventTypes
  26. final type ReactClipboardEventFrom[+N <: Node] = SyntheticClipboardEvent[N]

    Permalink
    Definition Classes
    ReactEventTypes
  27. final type ReactClipboardEventFromHtml = SyntheticClipboardEvent[Element]

    Permalink
    Definition Classes
    ReactEventTypes
  28. final type ReactClipboardEventFromInput = SyntheticClipboardEvent[Input]

    Permalink
    Definition Classes
    ReactEventTypes
  29. final type ReactClipboardEventFromTextArea = SyntheticClipboardEvent[TextArea]

    Permalink
    Definition Classes
    ReactEventTypes
  30. final type ReactCompositionEvent = SyntheticCompositionEvent[Node]

    Permalink
    Definition Classes
    ReactEventTypes
  31. final type ReactCompositionEventFrom[+N <: Node] = SyntheticCompositionEvent[N]

    Permalink
    Definition Classes
    ReactEventTypes
  32. final type ReactCompositionEventFromHtml = SyntheticCompositionEvent[Element]

    Permalink
    Definition Classes
    ReactEventTypes
  33. final type ReactCompositionEventFromInput = SyntheticCompositionEvent[Input]

    Permalink
    Definition Classes
    ReactEventTypes
  34. final type ReactCompositionEventFromTextArea = SyntheticCompositionEvent[TextArea]

    Permalink
    Definition Classes
    ReactEventTypes
  35. final type ReactDragEvent = SyntheticDragEvent[Node]

    Permalink
    Definition Classes
    ReactEventTypes
  36. final type ReactDragEventFrom[+N <: Node] = SyntheticDragEvent[N]

    Permalink
    Definition Classes
    ReactEventTypes
  37. final type ReactDragEventFromHtml = SyntheticDragEvent[Element]

    Permalink
    Definition Classes
    ReactEventTypes
  38. final type ReactDragEventFromInput = SyntheticDragEvent[Input]

    Permalink
    Definition Classes
    ReactEventTypes
  39. final type ReactDragEventFromTextArea = SyntheticDragEvent[TextArea]

    Permalink
    Definition Classes
    ReactEventTypes
  40. final type ReactEvent = SyntheticEvent[Node]

    Permalink
    Definition Classes
    ReactEventTypes
  41. final type ReactEventFrom[+N <: Node] = SyntheticEvent[N]

    Permalink
    Definition Classes
    ReactEventTypes
  42. final type ReactEventFromHtml = SyntheticEvent[Element]

    Permalink
    Definition Classes
    ReactEventTypes
  43. final type ReactEventFromInput = SyntheticEvent[Input]

    Permalink
    Definition Classes
    ReactEventTypes
  44. final type ReactEventFromTextArea = SyntheticEvent[TextArea]

    Permalink
    Definition Classes
    ReactEventTypes
  45. trait ReactEventTypes extends AnyRef

    Permalink
  46. final class ReactExt_DomEvent extends AnyVal

    Permalink
  47. implicit final class ReactExt_DomNode extends AnyVal

    Permalink

    Extensions to plain old DOM.

    Extensions to plain old DOM.

    Annotations
    @inline()
  48. implicit final class ReactExt_MountedDomNode extends AnyVal

    Permalink
    Annotations
    @inline()
  49. implicit final class ReactExt_OptionCallback extends AnyVal

    Permalink
    Annotations
    @inline()
  50. final class ReactExt_ReactEvent[E <: ReactEvent] extends AnyVal

    Permalink
  51. final class ReactExt_ReactKeyboardEvent[N <: Node] extends AnyVal

    Permalink
  52. final type ReactFocusEvent = SyntheticFocusEvent[Node]

    Permalink
    Definition Classes
    ReactEventTypes
  53. final type ReactFocusEventFrom[+N <: Node] = SyntheticFocusEvent[N]

    Permalink
    Definition Classes
    ReactEventTypes
  54. final type ReactFocusEventFromHtml = SyntheticFocusEvent[Element]

    Permalink
    Definition Classes
    ReactEventTypes
  55. final type ReactFocusEventFromInput = SyntheticFocusEvent[Input]

    Permalink
    Definition Classes
    ReactEventTypes
  56. final type ReactFocusEventFromTextArea = SyntheticFocusEvent[TextArea]

    Permalink
    Definition Classes
    ReactEventTypes
  57. final type ReactKeyboardEvent = SyntheticKeyboardEvent[Node]

    Permalink
    Definition Classes
    ReactEventTypes
  58. final type ReactKeyboardEventFrom[+N <: Node] = SyntheticKeyboardEvent[N]

    Permalink
    Definition Classes
    ReactEventTypes
  59. final type ReactKeyboardEventFromHtml = SyntheticKeyboardEvent[Element]

    Permalink
    Definition Classes
    ReactEventTypes
  60. final type ReactKeyboardEventFromInput = SyntheticKeyboardEvent[Input]

    Permalink
    Definition Classes
    ReactEventTypes
  61. final type ReactKeyboardEventFromTextArea = SyntheticKeyboardEvent[TextArea]

    Permalink
    Definition Classes
    ReactEventTypes
  62. final type ReactMouseEvent = SyntheticMouseEvent[Node]

    Permalink
    Definition Classes
    ReactEventTypes
  63. final type ReactMouseEventFrom[+N <: Node] = SyntheticMouseEvent[N]

    Permalink
    Definition Classes
    ReactEventTypes
  64. final type ReactMouseEventFromHtml = SyntheticMouseEvent[Element]

    Permalink
    Definition Classes
    ReactEventTypes
  65. final type ReactMouseEventFromInput = SyntheticMouseEvent[Input]

    Permalink
    Definition Classes
    ReactEventTypes
  66. final type ReactMouseEventFromTextArea = SyntheticMouseEvent[TextArea]

    Permalink
    Definition Classes
    ReactEventTypes
  67. final type ReactTouchEvent = SyntheticTouchEvent[Node]

    Permalink
    Definition Classes
    ReactEventTypes
  68. final type ReactTouchEventFrom[+N <: Node] = SyntheticTouchEvent[N]

    Permalink
    Definition Classes
    ReactEventTypes
  69. final type ReactTouchEventFromHtml = SyntheticTouchEvent[Element]

    Permalink
    Definition Classes
    ReactEventTypes
  70. final type ReactTouchEventFromInput = SyntheticTouchEvent[Input]

    Permalink
    Definition Classes
    ReactEventTypes
  71. final type ReactTouchEventFromTextArea = SyntheticTouchEvent[TextArea]

    Permalink
    Definition Classes
    ReactEventTypes
  72. final type ReactTransitionEvent = SyntheticTransitionEvent[Node]

    Permalink
    Definition Classes
    ReactEventTypes
  73. final type ReactTransitionEventFrom[+N <: Node] = SyntheticTransitionEvent[N]

    Permalink
    Definition Classes
    ReactEventTypes
  74. final type ReactTransitionEventFromHtml = SyntheticTransitionEvent[Element]

    Permalink
    Definition Classes
    ReactEventTypes
  75. final type ReactTransitionEventFromInput = SyntheticTransitionEvent[Input]

    Permalink
    Definition Classes
    ReactEventTypes
  76. final type ReactTransitionEventFromTextArea = SyntheticTransitionEvent[TextArea]

    Permalink
    Definition Classes
    ReactEventTypes
  77. final type ReactUIEvent = SyntheticUIEvent[Node]

    Permalink
    Definition Classes
    ReactEventTypes
  78. final type ReactUIEventFrom[+N <: Node] = SyntheticUIEvent[N]

    Permalink
    Definition Classes
    ReactEventTypes
  79. final type ReactUIEventFromHtml = SyntheticUIEvent[Element]

    Permalink
    Definition Classes
    ReactEventTypes
  80. final type ReactUIEventFromInput = SyntheticUIEvent[Input]

    Permalink
    Definition Classes
    ReactEventTypes
  81. final type ReactUIEventFromTextArea = SyntheticUIEvent[TextArea]

    Permalink
    Definition Classes
    ReactEventTypes
  82. final type ReactWheelEvent = SyntheticWheelEvent[Node]

    Permalink
    Definition Classes
    ReactEventTypes
  83. final type ReactWheelEventFrom[+N <: Node] = SyntheticWheelEvent[N]

    Permalink
    Definition Classes
    ReactEventTypes
  84. final type ReactWheelEventFromHtml = SyntheticWheelEvent[Element]

    Permalink
    Definition Classes
    ReactEventTypes
  85. final type ReactWheelEventFromInput = SyntheticWheelEvent[Input]

    Permalink
    Definition Classes
    ReactEventTypes
  86. final type ReactWheelEventFromTextArea = SyntheticWheelEvent[TextArea]

    Permalink
    Definition Classes
    ReactEventTypes
  87. trait Ref[I, O] extends AnyRef

    Permalink
  88. type ScalaComponent[P, S, B, CT[-p, +u] <: CtorType[p, u]] = react.component.Js.ComponentWithRoot[P, CT, Unmounted[P, S, B], Box[P], CT, JsUnmounted[P, S, B]]

    Permalink
  89. type ScalaFnComponent[P, CT[-p, +u] <: CtorType[p, u]] = react.component.JsFn.ComponentWithRoot[P, CT, Unmounted[P], Box[P], CT, Unmounted[Box[P]]]

    Permalink
  90. final class SetStateFn[F[_], S] extends AbstractFunction2[Option[S], Callback, F[Unit]] with SetState[F, S]

    Permalink
  91. type SetStateFnImpure[S] = SetStateFn[Id, S]

    Permalink
  92. type SetStateFnPure[S] = SetStateFn[CallbackTo, S]

    Permalink
  93. trait StateAccess[F[_], S] extends Write[F, S]

    Permalink

    Base class for something that has read/write state access (under the same effect type).

    Base class for something that has read/write state access (under the same effect type).

    Passing this around (top-level) is fine but do not use it in a generic/library/helper method. In intermediary positions, use StateAccessor instead.

    F

    The type of effect when accessing state.

    S

    State type.

  94. type StateAccessImpure[S] = StateAccess[Id, S]

    Permalink
  95. type StateAccessPure[S] = StateAccess[CallbackTo, S]

    Permalink
  96. trait StateAccessorImplicits extends StateAccessorImplicits1

    Permalink
  97. trait StateAccessorImplicits1 extends StateAccessorImplicits2

    Permalink
  98. trait StateAccessorImplicits2 extends AnyRef

    Permalink

Value Members

  1. object Callback

    Permalink

    A callback with no return value.

    A callback with no return value. Equivalent to () => Unit.

    See also

    CallbackTo

  2. object CallbackKleisli extends Serializable

    Permalink
  3. object CallbackOption

    Permalink
  4. object CallbackTo

    Permalink
  5. object Children

    Permalink
  6. object CtorType

    Permalink
  7. val GenericComponent: Generic.type

    Permalink
  8. val JsComponent: Js.type

    Permalink
  9. val JsFnComponent: JsFn.type

    Permalink
  10. object ModStateFn

    Permalink
  11. object ModStateWithPropsFn

    Permalink
  12. object PropsChildren

    Permalink
  13. object ReactDOM

    Permalink
  14. object ReactDOMServer

    Permalink
  15. object ReactMouseEvent

    Permalink
  16. object Ref

    Permalink
  17. val ScalaComponent: Scala.type

    Permalink
  18. val ScalaFnComponent: ScalaFn.type

    Permalink
  19. object SetStateFn

    Permalink
  20. object StateAccess

    Permalink
  21. object StateAccessor extends StateAccessorImplicits

    Permalink

    Type-classes that provide read and/or write access to state.

    Type-classes that provide read and/or write access to state.

    The syntax is a little wonky for technical reasons. For read access, it's typeclass.state(i): F[S]. For write access, it's typeclass(i).setState(...): F[Unit].

  22. package component

    Permalink
  23. package internal

    Permalink
  24. package raw

    Permalink

    See https://flow.org/en/docs/react/types

  25. implicit def toReactExt_DomEvent(e: Event): ReactExt_DomEvent

    Permalink
    Definition Classes
    ReactEventTypes
  26. implicit def toReactExt_ReactEvent[E <: ReactEvent](e: E): ReactExt_ReactEvent[E]

    Permalink
    Definition Classes
    ReactEventTypes
  27. implicit def toReactExt_ReactKeyboardEvent[N <: Node](e: ReactKeyboardEventFrom[N]): ReactExt_ReactKeyboardEvent[N]

    Permalink
    Definition Classes
    ReactEventTypes
  28. package vdom

    Permalink

Inherited from ReactEventTypes

Inherited from AnyRef

Inherited from Any

Ungrouped