Object/Class

japgolly.scalajs.react

CallbackTo

Related Docs: class CallbackTo | package react

Permalink

object CallbackTo

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

Type Members

  1. final class LiftTraverseDsl[A, B] extends AnyVal

    Permalink
  2. sealed trait MapGuard[A] extends AnyRef

    Permalink

    Prevents scalac discarding the result of a map function when the final result is Callback.

    Prevents scalac discarding the result of a map function when the final result is Callback.

    See https://github.com/japgolly/scalajs-react/issues/256

    Since

    0.11.0

  3. final class ReactExt_CallbackToFuture[A] extends AnyVal

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. implicit def MapGuard[A]: MapGuard[A]

    Permalink
    Annotations
    @inline()
  5. def apply[A](f: ⇒ A): CallbackTo[A]

    Permalink
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def byName[A](f: ⇒ CallbackTo[A]): CallbackTo[A]

    Permalink

    Callback that is recreated each time it is used.

    Callback that is recreated each time it is used.

    https://en.wikipedia.org/wiki/Evaluation_strategy#Call_by_name

  8. implicit def callbackCovariance[A, B >: A](c: CallbackTo[A]): CallbackTo[B]

    Permalink
    Annotations
    @inline()
  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def confirm(message: String): CallbackTo[Boolean]

    Permalink

    Displays a modal dialog with a message and two buttons, OK and Cancel.

    Displays a modal dialog with a message and two buttons, OK and Cancel.

    message

    a string to be displayed in the dialog.

    returns

    A boolean value indicating whether OK or Cancel was selected (true means OK).

  11. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  13. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. def future[A](f: ⇒ Future[CallbackTo[A]])(implicit ec: ExecutionContext): CallbackTo[Future[A]]

    Permalink

    Wraps a Future so that it is repeatable, and so that its inner callback is run when the future completes.

    Wraps a Future so that it is repeatable, and so that its inner callback is run when the future completes.

    WARNING: Futures are scheduled to run as soon as they're created. Ensure that the argument you provide creates a new Future; don't reference an existing one.

  15. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  16. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  17. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  18. def lazily[A](f: ⇒ CallbackTo[A]): CallbackTo[A]

    Permalink

    Callback that isn't created until the first time it is used, after which it is reused.

  19. def lift[A](f: () ⇒ A): CallbackTo[A]

    Permalink
  20. def liftTraverse[A, B](f: (A) ⇒ CallbackTo[B]): LiftTraverseDsl[A, B]

    Permalink
  21. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  22. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  23. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  24. def prompt(message: String, default: String): CallbackTo[Option[String]]

    Permalink

    Displays a dialog with an optional message prompting the user to input some text.

    Displays a dialog with an optional message prompting the user to input some text.

    message

    a string of text to display to the user. This parameter is optional and can be omitted if there is nothing to show in the prompt window.

    default

    a string containing the default value displayed in the text input field. It is an optional parameter. Note that in Internet Explorer 7 and 8, if you do not provide this parameter, the string "undefined" is the default value.

    returns

    Some string comprising the text entered by the user, or None.

  25. def prompt(message: String): CallbackTo[Option[String]]

    Permalink

    Displays a dialog with an optional message prompting the user to input some text.

    Displays a dialog with an optional message prompting the user to input some text.

    message

    a string of text to display to the user. This parameter is optional and can be omitted if there is nothing to show in the prompt window.

    returns

    Some string comprising the text entered by the user, or None.

  26. def prompt: CallbackTo[Option[String]]

    Permalink

    Displays a dialog with an optional message prompting the user to input some text.

    Displays a dialog with an optional message prompting the user to input some text.

    returns

    Some string comprising the text entered by the user, or None.

  27. def pure[A](a: A): CallbackTo[A]

    Permalink
  28. def retryUntilRight[L, R](attempt: CallbackTo[Either[L, R]])(onLeft: (L) ⇒ Callback): CallbackTo[R]

    Permalink
  29. def sequence[T[X] <: TraversableOnce[X], A](tca: ⇒ T[CallbackTo[A]])(implicit cbf: CanBuildFrom[T[CallbackTo[A]], A, T[A]]): CallbackTo[T[A]]

    Permalink

    Sequence stdlib T over CallbackTo.

    Sequence stdlib T over CallbackTo. Co-sequence CallbackTo over stdlib T.

  30. def sequenceOption[A](oca: ⇒ Option[CallbackTo[A]]): CallbackTo[Option[A]]

    Permalink

    Sequence Option over CallbackTo.

    Sequence Option over CallbackTo. Co-sequence CallbackTo over Option.

  31. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  32. def tailrec[A, B](a: A)(f: (A) ⇒ CallbackTo[Either[A, B]]): CallbackTo[B]

    Permalink

    Tail-recursive callback.

    Tail-recursive callback. Uses constant stack space.

    Based on Phil Freeman's work on stack safety in PureScript, described in Stack Safety for Free.

  33. def throwException[A](t: Throwable): CallbackTo[A]

    Permalink
  34. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  35. def traverse[T[X] <: TraversableOnce[X], A, B](ta: ⇒ T[A])(f: (A) ⇒ CallbackTo[B])(implicit cbf: CanBuildFrom[T[A], B, T[B]]): CallbackTo[T[B]]

    Permalink

    Traverse stdlib T over CallbackTo.

    Traverse stdlib T over CallbackTo. Distribute CallbackTo over stdlib T.

  36. def traverseOption[A, B](oa: ⇒ Option[A])(f: (A) ⇒ CallbackTo[B]): CallbackTo[Option[B]]

    Permalink

    Traverse Option over CallbackTo.

    Traverse Option over CallbackTo. Distribute CallbackTo over Option.

  37. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  39. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  40. def windowOpen(url: String, noopener: Boolean = true, focus: Boolean = true): CallbackTo[Window]

    Permalink

    When executed, opens a new window (tab) to a given URL.

    When executed, opens a new window (tab) to a given URL.

    noopener

    See https://developers.google.com/web/tools/lighthouse/audits/noopener

    focus

    Whether or not to focus the new window.

Deprecated Value Members

  1. def TODO[A](result: ⇒ A, reason: ⇒ String): CallbackTo[A]

    Permalink

    Serves as a temporary placeholder for a callback until you supply a real implementation.

    Serves as a temporary placeholder for a callback until you supply a real implementation.

    Unlike ??? this doesn't crash, it just prints a warning to the console.

    Also it's not really deprecated; that's just so you get a compiler warning as a reminder.

    Annotations
    @deprecated
    Deprecated

    (Since version not really deprecated)

  2. def TODO[A](result: ⇒ A): CallbackTo[A]

    Permalink

    Serves as a temporary placeholder for a callback until you supply a real implementation.

    Serves as a temporary placeholder for a callback until you supply a real implementation.

    Unlike ??? this doesn't crash, it just prints a warning to the console.

    Also it's not really deprecated; that's just so you get a compiler warning as a reminder.

    Annotations
    @deprecated
    Deprecated

    (Since version not really deprecated)

Inherited from AnyRef

Inherited from Any

Ungrouped