StaticDsl

japgolly.scalajs.react.extra.router.StaticDsl$
object StaticDsl

This is not meant to be imported by library-users; RouterConfigDsl is the entire library-user-facing facade & DSL.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
StaticDsl.type

Members list

Type members

Classlikes

final class DynamicRedirectB[Page, Props, A, O](f: (A => Redirect[Page]) => O) extends AnyVal

Attributes

Supertypes
class AnyVal
trait Matchable
class Any
final class DynamicRouteB[Page, Props, P <: Page, O](f: (P => Action[Page, Props]) => O) extends AnyVal

Attributes

Supertypes
class AnyVal
trait Matchable
class Any
case class Route[A](parse: Path => Option[A], pathFor: A => Path) extends RouteCommon[Route, A]

A Route translates a Path into an instance of model A and vice versa.

A Route translates a Path into an instance of model A and vice versa.

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
trait RouteCommon[Route, A]
class Object
trait Matchable
class Any
Show all
object Route

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Route.type
class RouteB[A](val regex: String, val matchGroups: Int, val parse: (Int => String) => Option[A], val build: A => String) extends RouteCommon[RouteB, A], ForRouteB[A]

A fragment of a route. Can be composed with other fragments.

A fragment of a route. Can be composed with other fragments.

Value parameters

matchGroups

The number of matches that regex will capture.

Attributes

Companion
object
Supertypes
trait ForRouteB[A]
trait RouteCommon[RouteB, A]
class Object
trait Matchable
class Any
object RouteB

Route builder. Allows you to specify routes like "user" / int / "display". Once complete, RouteB will become a Route.

Route builder. Allows you to specify routes like "user" / int / "display". Once complete, RouteB will become a Route.

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
RouteB.type
final class RouteBO[A](r: RouteB[Option[A]]) extends AnyVal

Attributes

Supertypes
class AnyVal
trait Matchable
class Any
trait RouteCommon[R <: ([X] =>> RouteCommon[R, X]), A]

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Route[A]
class RouteB[A]
final class StaticRedirectB[Page, Props, O](f: (=> Redirect[Page]) => O) extends AnyVal

Attributes

Supertypes
class AnyVal
trait Matchable
class Any
final class StaticRouteB[Page, Props, O](f: (=> Action[Page, Props]) => O) extends AnyVal

Attributes

Supertypes
class AnyVal
trait Matchable
class Any