Skip to content

@serenity-is/corelib / PageRouteHandler

Interface: PageRouteHandler

Defined in: src/compat/router.ts:24

A handler of the routes of a page that are not of dialogs, e.g. "view/12" for the record a page shows, see registerPageRoute. Such a route is the first part of the hash, before the ones of the dialogs that are opened on the page, e.g. "view/12/+/!1".

Methods

handle()

handle(route): void

Defined in: src/compat/router.ts:31

Shows what a route of the page says, or the page without one for an empty route, e.g. when the Back button of the browser takes it out of the hash. It is not called for a change the page made itself, e.g. with a silent navigate.

Parameters

route

string

Returns

void


match()

match(route): boolean

Defined in: src/compat/router.ts:26

Whether a route is one of the page, e.g. "view/12".

Parameters

route

string

Returns

boolean