object CallbackTo
- Alphabetic
- By Inheritance
- CallbackTo
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- final class LiftTraverseDsl[A, B] extends AnyVal
-
sealed
trait
MapGuard[A] extends AnyRef
Prevents
scalacdiscarding the result of a map function when the final result isCallback.Prevents
scalacdiscarding the result of a map function when the final result isCallback.See https://github.com/japgolly/scalajs-react/issues/256
- Since
0.11.0
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
implicit
def
MapGuard[A]: MapGuard[A]
- Annotations
- @inline()
-
def
apply[A](f: ⇒ A): CallbackTo[A]
- Annotations
- @inline()
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
byName[A](f: ⇒ CallbackTo[A]): CallbackTo[A]
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
-
implicit
def
callbackCovariance[A, B >: A](c: CallbackTo[A]): CallbackTo[B]
- Annotations
- @inline()
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
def
confirm(message: String): CallbackTo[Boolean]
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).
- lazy val currentTimeMillis: CallbackTo[Long]
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
future[A](f: ⇒ Future[CallbackTo[A]])(implicit ec: ExecutionContext): CallbackTo[Future[A]]
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.
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
lazily[A](f: ⇒ CallbackTo[A]): CallbackTo[A]
Callback that isn't created until the first time it is used, after which it is reused.
- def lift[A](f: () ⇒ A): CallbackTo[A]
- def liftTraverse[A, B](f: (A) ⇒ CallbackTo[B]): LiftTraverseDsl[A, B]
- lazy val nanoTime: CallbackTo[Long]
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- lazy val now: CallbackTo[Instant]
-
def
prompt(message: String, default: String): CallbackTo[Option[String]]
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.
-
def
prompt(message: String): CallbackTo[Option[String]]
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.
-
def
prompt: CallbackTo[Option[String]]
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.
- def pure[A](a: A): CallbackTo[A]
- def retryUntilRight[L, R](attempt: CallbackTo[Either[L, R]])(onLeft: (L) ⇒ Callback): CallbackTo[R]
-
def
sequence[T[X] <: scala.collection.compat.IterableOnce[X], A](tca: ⇒ T[CallbackTo[A]])(implicit cbf: BuildFrom[T[CallbackTo[A]], A, T[A]]): CallbackTo[T[A]]
Sequence stdlib T over CallbackTo.
Sequence stdlib T over CallbackTo. Co-sequence CallbackTo over stdlib T.
-
def
sequenceOption[A](oca: ⇒ Option[CallbackTo[A]]): CallbackTo[Option[A]]
Sequence Option over CallbackTo.
Sequence Option over CallbackTo. Co-sequence CallbackTo over Option.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
tailrec[A, B](a: A)(f: (A) ⇒ CallbackTo[Either[A, B]]): CallbackTo[B]
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.
- def throwException[A](t: Throwable): CallbackTo[A]
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
traverse[T[X] <: scala.collection.compat.IterableOnce[X], A, B](ta: ⇒ T[A])(f: (A) ⇒ CallbackTo[B])(implicit cbf: BuildFrom[T[A], B, T[B]]): CallbackTo[T[B]]
Traverse stdlib T over CallbackTo.
Traverse stdlib T over CallbackTo. Distribute CallbackTo over stdlib T.
-
def
traverseOption[A, B](oa: ⇒ Option[A])(f: (A) ⇒ CallbackTo[B]): CallbackTo[Option[B]]
Traverse Option over CallbackTo.
Traverse Option over CallbackTo. Distribute CallbackTo over Option.
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
windowOpen(url: String, noopener: Boolean = true, focus: Boolean = true): CallbackTo[Window]
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
-
def
TODO[A](result: ⇒ A, reason: ⇒ String): CallbackTo[A]
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)
-
def
TODO[A](result: ⇒ A): CallbackTo[A]
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)
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated @deprecated
- Deprecated
(Since version ) see corresponding Javadoc for more information.