ModCB

japgolly.scalajs.react.extra.router.RouterCtlF$.ModCB
final case class ModCB[F[_], A](u: RouterCtlF[F, A], f: (A, F[Unit]) => F[Unit])(implicit x: Sync[F]) extends RouterCtlF[F, A]

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class RouterCtlF[F, A]
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

override def baseUrl: BaseUrl

Attributes

Definition Classes
override def byPath: RouterCtlF[F, Path]

Attributes

Definition Classes
override def pathFor(a: A): Path

Attributes

Definition Classes
override def refresh: F[Unit]

Attributes

Definition Classes
override def set(a: A, v: SetRouteVia): F[Unit]

Attributes

Definition Classes

Inherited methods

final def contramap[B](f: B => A): RouterCtlF[F, B]

Attributes

Inherited from:
RouterCtlF
final def narrow[B <: A]: RouterCtlF[F, B]

Attributes

Inherited from:
RouterCtlF
final def onLinkClick(route: A): ReactMouseEvent => Option[F[Unit]]

Attributes

Inherited from:
RouterCtlF
final def onSet(f: F[Unit] => F[Unit]): RouterCtlF[F, Route]

Change the behaviour of set and all derivatives.

Change the behaviour of set and all derivatives.

For example, this can be used to set a component's state immediately before setting a new route.

Attributes

Inherited from:
RouterCtlF
final def onSet(f: (A, F[Unit]) => F[Unit]): RouterCtlF[F, Route]

Change the behaviour of set and all derivatives.

Change the behaviour of set and all derivatives.

For example, this can be used to set a component's state immediately before setting a new route.

Attributes

Inherited from:
RouterCtlF
final def onSetRun(f: F[Unit]): RouterCtlF[F, Route]

Return a new version of this that executes the specified callback after setting new routes.

Return a new version of this that executes the specified callback after setting new routes.

Attributes

Inherited from:
RouterCtlF
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
final def set(route: A): F[Unit]

Attributes

Inherited from:
RouterCtlF
final def setEH(route: A): ReactEvent => F[Unit]

Attributes

Inherited from:
RouterCtlF
final def setOnClick(route: A): TagMod

Attributes

Inherited from:
RouterCtlF
final def setOnLinkClick(route: A): TagMod

Attributes

Inherited from:
RouterCtlF
final def urlFor(route: A): AbsUrl

Attributes

Inherited from:
RouterCtlF
def withEffect[G[_]](implicit G: Sync[G]): RouterCtlF[G, Route]

Attributes

Inherited from:
RouterCtlF

Deprecated and Inherited methods

final def setOnClick(route: A, callback: F[Unit]): TagMod

Attributes

Deprecated
true
Inherited from:
RouterCtlF
final def setOnLinkClick(route: A, callback: F[Unit]): TagMod

Attributes

Deprecated
true
Inherited from:
RouterCtlF