japgolly.scalajs.react.extra.router
Type members
Classlikes
An absolute URL.
An absolute URL.
- Companion:
- object
The prefix of all routes on a page.
The prefix of all routes on a page.
The router expects this to be a full URL.
Examples: BaseUrl("http://www.blah.com/hello")
, BaseUrl.fromWindowOrigin / "hello"
.
- Companion:
- object
Result of the router resolving a URL and reaching a conclusion about what to render.
Result of the router resolving a URL and reaching a conclusion about what to render.
- Value parameters:
- page
Data representation (or command) of what will be drawn.
- render
The render function provided by the rules and logic in RouterConfig.
DSL for creating RouterConfig.
DSL for creating RouterConfig.
Instead creating an instance of this yourself, use RouterConfigDsl.apply.
- Companion:
- object
Router controller. A client API to the router.
Router controller. A client API to the router.
- Type parameters:
- Route
A data type that indicates a route that can be navigated to.
- Companion:
- object
Performs all routing logic.
Performs all routing logic.
- Type parameters:
- Page
Routing rules context. Prevents different routing rule sets being mixed up.
- Value parameters:
- baseUrl
The prefix of all routes in a set.
A single routing rule. Intended to be composed with other RoutingRules. When all rules are composed, this is turned into a RoutingRule.WithFallback instance.
A single routing rule. Intended to be composed with other RoutingRules. When all rules are composed, this is turned into a RoutingRule.WithFallback instance.
- Type parameters:
- Page
The type of legal pages. Most commonly, a sealed trait that you've created, where all subclasses represent a page in your SPA.
- Companion:
- object
A complete set of routing rules that allow the router to handle every all routes without further input.
A complete set of routing rules that allow the router to handle every all routes without further input.
- Type parameters:
- Page
The type of legal pages. Most commonly, a sealed trait that you've created, where all subclasses represent a page in your SPA.
- Companion:
- object
The means by which the location should be set to a given URL.
The means by which the location should be set to a given URL.
- Companion:
- object
This is not meant to be imported by library-users; RouterConfigDsl is the entire library-user-facing facade & DSL.
This is not meant to be imported by library-users; RouterConfigDsl is the entire library-user-facing facade & DSL.
Types
A complete set of routing rules that allow the router to handle every all routes without further input.
A complete set of routing rules that allow the router to handle every all routes without further input.
- Type parameters:
- Page
The type of legal pages. Most commonly, a sealed trait that you've created, where all subclasses represent a page in your SPA.