Route Type
Static members
Static member | Description |
Full Usage:
Route.cache strategy definition
Parameters:
CacheStrategy
definition : RouteDefinition<'a>
Returns: RouteDefinition<'a>
Modifiers: inline Type parameters: 'a |
|
Full Usage:
Route.child child definition
Parameters:
RouteDefinition<'a>
-
The child route definition
definition : RouteDefinition<'a>
-
The parent route definition
Returns: RouteDefinition<'a>
The parent route definition with the child route definition added
Modifiers: inline Type parameters: 'a |
|
Full Usage:
Route.children children definition
Parameters:
RouteDefinition<'a> seq
-
The child route definition
definition : RouteDefinition<'a>
-
The parent route definition
Returns: RouteDefinition<'a>
The parent route definition with the child route definition added
Modifiers: inline Type parameters: 'a |
|
Full Usage:
Route.define (name, path, handler)
Parameters:
string
-
The name of the route
path : string
-
A templated URL that will be used to match this route
handler : RouteContext -> INavigable<'View> -> Async<'View>
-
An async returning function to render when the route is activated.
Returns: RouteDefinition<'View>
A route definition
Modifiers: inline Type parameters: 'View |
A cancellation token can be extracted from Async.CancellationToken in the async workdflow to support cancellation of the route activation.
|
Full Usage:
Route.define (name, path, handler)
Parameters:
string
-
The name of the route
path : string
-
A templated URL that will be used to match this route
handler : RouteContext -> INavigable<'View> -> CancellationToken -> Task<'View>
-
An task returning function to render when the route is activated.
Returns: RouteDefinition<'View>
A route definition
Modifiers: inline Type parameters: 'View |
A cancellation token is provided alongside the route context to allow you to support cancellation of the route activation.
|
Full Usage:
Route.define (name, path, handler)
Parameters:
string
-
The name of the route
path : string
-
A templated URL that will be used to match this route
handler : RouteContext -> INavigable<'View> -> 'View
-
The view to render when the route is activated
Returns: RouteDefinition<'View>
A route definition
Modifiers: inline Type parameters: 'View |
|