UNPKG

775 BTypeScriptView Raw
1import Swiper from '../swiper-class';
2
3export interface HashNavigationMethods {}
4
5export interface HashNavigationEvents {
6 /**
7 * Event will be fired on window hash change
8 */
9 hashChange: (swiper: Swiper) => void;
10 /**
11 * Event will be fired when swiper updates the hash
12 */
13 hashSet: (swiper: Swiper) => void;
14}
15
16export interface HashNavigationOptions {
17 /**
18 * Set to `true` to enable also navigation through slides (when hashnav
19 * is enabled) by browser history or by setting directly hash on document location
20 *
21 * @default false
22 */
23 watchState?: boolean;
24
25 /**
26 * Works in addition to hashnav to replace current url state with the
27 * new one instead of adding it to history
28 *
29 * @default false
30 */
31 replaceState?: boolean;
32}