RouterExtensions Type

Static members

Static member Description

RouterExtensions.HRef(this, endpoint, ?hash)

Full Usage: RouterExtensions.HRef(this, endpoint, ?hash)

Parameters:
    this : Router<'ep, 'a, 'b> - The router.
    endpoint : 'ep - The router endpoint.
    ?hash : string - The hash part of the URL, to scroll to the element with this id.

Returns: Attr An href attribute pointing to the given endpoint.

Create an HTML href attribute pointing to the given endpoint.

this : Router<'ep, 'a, 'b>

The router.

endpoint : 'ep

The router endpoint.

?hash : string

The hash part of the URL, to scroll to the element with this id.

Returns: Attr

An href attribute pointing to the given endpoint.