RouteCmd

object RouteCmd
Companion
class
trait Sum
trait Mirror
class Object
trait Matchable
class Any

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.

final case class Log(msg: () => String) extends RouteCmd[Unit]
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.

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.

final case class Return[A](a: A) extends RouteCmd[A]

Return an arbitrary value.

Return an arbitrary value.

final case class Sequence[A](init: Vector[RouteCmd[_]], last: RouteCmd[A]) extends RouteCmd[A]
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.

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Inherited from
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Inherited from
Mirror

Value members

Concrete methods

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