RouteCmd

japgolly.scalajs.react.extra.router.RouteCmd$
See theRouteCmd companion class
object RouteCmd

Attributes

Companion
class
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
RouteCmd.type

Members list

Type members

Classlikes

case object BroadcastSync extends RouteCmd[Unit]

Broadcast a message to Router component telling it to re-synchronise itself with the current window URL, recalculating the route and content to render.

Broadcast a message to Router component telling it to re-synchronise itself with the current window URL, recalculating the route and content to render.

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class RouteCmd[Unit]
class Object
trait Matchable
class Any
Show all
Self type
final case class Log(msg: () => String) extends RouteCmd[Unit]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class RouteCmd[Unit]
class Object
trait Matchable
class Any
Show all
final case class PushState(url: AbsUrl) extends RouteCmd[Unit]

Pushes the given data onto the session history stack with the specified title and, if provided, URL.

Pushes the given data onto the session history stack with the specified title and, if provided, URL.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class RouteCmd[Unit]
class Object
trait Matchable
class Any
Show all
final case class ReplaceState(url: AbsUrl) extends RouteCmd[Unit]

Updates the most recent entry on the history stack to have the specified data, title, and, if provided, URL.

Updates the most recent entry on the history stack to have the specified data, title, and, if provided, URL.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class RouteCmd[Unit]
class Object
trait Matchable
class Any
Show all
final case class Return[A](a: A) extends RouteCmd[A]

Return an arbitrary value.

Return an arbitrary value.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class RouteCmd[A]
class Object
trait Matchable
class Any
Show all
final case class Sequence[A](init: Vector[RouteCmd[_]], last: RouteCmd[A]) extends RouteCmd[A]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class RouteCmd[A]
class Object
trait Matchable
class Any
Show all
final case class SetWindowLocation(url: AbsUrl) extends RouteCmd[Unit]

Sets window.location.href to a provided URL.

Sets window.location.href to a provided URL.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class RouteCmd[Unit]
class Object
trait Matchable
class Any
Show all

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def setRoute(url: AbsUrl, via: SetRouteVia): RouteCmd[Unit]