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
final class Route[A](pattern: Pattern, parseFn: Matcher => Option[A], buildFn: A => Path) extends RouteCommon[Route, A], ForRoute[A]

A complete route.

A complete route.

Attributes

Supertypes
trait ForRoute[A]
class RouteCommon[Route, A]
class Object
trait Matchable
class Any
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]
class 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
abstract class 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