@ribajs/router
Version:
Routing extension for Riba.js inspired by Barba.js
19 lines (17 loc) • 535 B
text/typescript
import type { Transition } from "./transition.js";
export interface RouterViewOptions {
id?: string;
action: "replace" | "append";
scrollToTop: boolean;
listenAllLinks: boolean;
listenPopstate: boolean;
scrollToAnchorHash: boolean;
scrollToAnchorOffset: number;
/** If true the dataset of the first view child is added to the root scope, default is `true` */
datasetToRootScope?: boolean;
parseTitle: boolean;
changeBrowserUrl: boolean;
prefetchLinks: boolean;
transition: Transition;
disable?: boolean;
}