Header menu logo Navs

Route Type

Static members

Static member Description

Route.Define(name, path, getContent)

Full Usage: Route.Define(name, path, getContent)

Parameters:
    name : string - The name of the route
    path : string - A templated URL that will be used to match this route
    getContent : Func<RouteContext, INavigable<'View>, CancellationToken, Task<'View>> - The delegate that will be called to render the view when the route is activated

Returns: RouteDefinition<'View> A route definition
Modifiers: inline
Type parameters: 'View

Defines a route in the application

This function should ideally be used from F# as it provides a more idiomatic F# Function signature.

name : string

The name of the route

path : string

A templated URL that will be used to match this route

getContent : Func<RouteContext, INavigable<'View>, CancellationToken, Task<'View>>

The delegate that will be called to render the view when the route is activated

Returns: RouteDefinition<'View>

A route definition

Route.Define(name, path, getContent)

Full Usage: Route.Define(name, path, getContent)

Parameters:
    name : string - The name of the route
    path : string - A templated URL that will be used to match this route
    getContent : Func<RouteContext, INavigable<'View>, 'View> - The delegate that will be called to render the view when the route is activated

Returns: RouteDefinition<'View> A route definition
Modifiers: inline
Type parameters: 'View

Defines a route in the application

This function should ideally be used from non-F# languages as it provides a more standard Function signature.

name : string

The name of the route

path : string

A templated URL that will be used to match this route

getContent : Func<RouteContext, INavigable<'View>, 'View>

The delegate that will be called to render the view when the route is activated

Returns: RouteDefinition<'View>

A route definition

Type something to start searching.