Opens a page by navigating to the given target
with provided page parameters.
Appends an entry to navigation history.
PreNavigateEvent#wesib:preNavigate On window object prior to actually navigate.
Then navigates to the target
, unless the event cancelled.
NavigateEvent@wesib:navigate On window object when navigation succeed.
A promise resolved to navigated page, or to null
otherwise.
Optional
target: string | URL | TargetEither navigation target or URL to navigate to. Navigates to current page URL when omitted.
Pretends navigation.
Prepares navigation and parameters, but does not actually navigate. Instead it calls the provided callback function.
This is useful e.g. to build target URL or evaluate target page parameter.
Either the value returned by callback, or undefined
when navigation failed.
Either navigation target or URL to pretend navigation to.
A callback function receiving two pages as parameters: the page to leave, and the page to open. The latter one is valid only inside callback, as its parameters will be cleaned up right after callback returns. The value returned from callback is then returned from this method call. It may be used to collect some data from target page.
Pretends navigation to the same page.
Prepares navigation and parameters, but does not actually navigate. Instead it calls the provided callback function.
This is useful e.g. to build target URL or evaluate target page parameter.
Either the value returned by callback, or undefined
when navigation failed.
A callback function receiving two pages as parameters: the page to leave, and the page to open. The latter one is valid only inside callback, as its parameters will be cleaned up right after callback returns. The value returned from callback is then returned from this method call. It may be used to collect some data from target page.
Pretends navigation and builds navigation target.
Prepares navigation and parameters, but does not actually navigate. Instead it calls the provided callback function.
This is useful e.g. to build target URL or evaluate target page parameter.
Either Navigation target with URL value, or undefined
when navigation failed.
Optional
target: string | URL | TargetEither navigation target or URL to pretend navigation to. Prepends navigation to current page when omitted.
Replaces the most recent entry in navigation history with the given target
and provided page parameters.
PreNavigateEvent#wesib:preNavigate On window object prior to actually update the history.
Then navigates to the target
, unless the event cancelled.
NavigateEvent@wesib:navigate On window object when history updated.
A promise resolved to navigated page, or to null
otherwise.
Optional
target: string | URL | TargetEither navigation target or URL to replace the latest history entry with. Navigates to current page URL when omitted.
Applies parameter to navigation target page.
New parameterized navigation instance.
Parameter value type.
Parameter input type.
Generated using TypeDoc
Parameterized navigation.
Allows to assign target page parameters prior to navigating to it.