Object

japgolly.scalajs.react

Callback

Related Doc: package react

Permalink

object Callback

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

See also

CallbackTo

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Callback
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Type Members

  1. final class ResultGuard[A] extends AnyRef

    Permalink
    Annotations
    @implicitNotFound( ... )

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. object ResultGuard

    Permalink
  5. def alert(message: String): Callback

    Permalink

    Convenience for calling dom.alert.

  6. def apply[U](f: ⇒ U)(implicit arg0: ResultGuard[U]): Callback

    Permalink
    Annotations
    @inline()
  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. def assert(test: Boolean, message: String, optionalParams: Any*): Callback

    Permalink

    Convenience for calling dom.console.assert.

  9. def byName(f: ⇒ Callback): Callback

    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

    Annotations
    @inline()
  10. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. val empty: Callback

    Permalink

    A callback that does nothing.

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

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

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

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

    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.

    The result is discarded. To retain it, use CallbackTo.future) instead.

    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.

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  18. def ifTrue(pred: Boolean, c: ⇒ Callback): Callback

    Permalink

    Convenience for applying a condition to a callback, and returning Callback.empty when the condition isn't satisfied.

  19. def info(message: Any, optionalParams: Any*): Callback

    Permalink

    Convenience for calling dom.console.info.

  20. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  21. def lazily(f: ⇒ Callback): Callback

    Permalink

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

  22. def lift(f: () ⇒ Unit): Callback

    Permalink
    Annotations
    @inline()
  23. def log(message: Any, optionalParams: Any*): Callback

    Permalink

    Convenience for calling dom.console.log.

  24. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  27. def sequence[T[X] <: TraversableOnce[X]](tca: ⇒ T[Callback]): Callback

    Permalink
    Annotations
    @inline()
  28. def sequenceO[A](oca: ⇒ Option[Callback]): Callback

    Permalink
    Annotations
    @inline()
  29. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  30. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  31. def traverse[T[X] <: TraversableOnce[X], A](ta: ⇒ T[A])(f: (A) ⇒ Callback): Callback

    Permalink
  32. def traverseO[A](oa: ⇒ Option[A])(f: (A) ⇒ Callback): Callback

    Permalink
  33. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. def warn(message: Any, optionalParams: Any*): Callback

    Permalink

    Convenience for calling dom.console.warn.

Deprecated Value Members

  1. def TODO(reason: ⇒ String): Callback

    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: Callback

    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