LinkHandler
LinkHandler = (
url,anchor,event) =>boolean|void
Defined in: route.ts:679
A link handler, as optionally passed to interceptLinks: called for every local-link activation that passed the built-in exclusions, with the resolved URL, the anchor element the activation landed on, and the DOM event.
- Return
falseto leave the link to the browser (nopreventDefault). - Return
trueto claim the link: default handling is prevented and the handler is assumed to have navigated (or decided not to) itself. - Return nothing for the default: prevent and
go(href).
Parameters
Section titled “Parameters”URL
anchor
Section titled “anchor”HTMLAnchorElement
Event
Returns
Section titled “Returns”boolean | void