japgolly.scalajs.react.extra.router.StaticDsl$.RouteB
See theRouteB companion object
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.
Value parameters
- matchGroups
-
The number of matches that
regexwill capture.
Attributes
- Companion
- object
- Graph
-
- Supertypes
Members list
Value members
Concrete methods
Attributes
- Definition Classes
Prism map.
Prism map.
Some values of A can be turned into a Bs, some fail (in which case the route is considered non-matching).
All Bs can be turned back into As.
Attributes
- Definition Classes
Returns a string representation of the object.
Returns a string representation of the object.
The default representation is platform dependent.
Attributes
- Returns
-
a string representation of the object.
- Definition Classes
-
Any
Inherited methods
Maps the captures values of the route to a case class.
Attributes
- Inherited from:
- RouteCommon
Attributes
- Inherited from:
- RouteCommon
Attributes
- Inherited from:
- RouteCommon
Attributes
- Inherited from:
- RouteCommon
Exponential map.
Exponential map.
Any A can be turned into a B and vice versa.
Attributes
- Inherited from:
- RouteCommon
Concrete fields
In this article