UNPKG

1.21 kBTypeScriptView Raw
1import Swiper from '../swiper-class';
2
3export interface ThumbsMethods {
4 /**
5 * Swiper instance of thumbs swiper
6 */
7 swiper: Swiper;
8
9 /**
10 * Update thumbs
11 */
12 update(initial: boolean): void;
13
14 /**
15 * Initialize thumbs
16 */
17 init(): boolean;
18}
19
20export interface ThumbsEvents {}
21
22export interface ThumbsOptions {
23 /**
24 * Swiper instance of swiper used as thumbs or object with Swiper parameters to initialize thumbs swiper
25 *
26 * @default null
27 */
28 swiper?: Swiper | null;
29 /**
30 * Additional class that will be added to activated thumbs swiper slide
31 *
32 * @default 'swiper-slide-thumb-active'
33 */
34 slideThumbActiveClass?: string;
35 /**
36 * Additional class that will be added to thumbs swiper
37 *
38 * @default 'swiper-thumbs'
39 */
40 thumbsContainerClass?: string;
41 /**
42 * When enabled multiple thumbnail slides may get activated
43 *
44 * @default true
45 */
46 multipleActiveThumbs?: boolean;
47 /**
48 * Allows to set on which thumbs active slide from edge it should automatically move scroll thumbs. For example, if set to 1 and last visible thumb will be activated (1 from edge) it will auto scroll thumbs
49
50 *
51 * @default 0
52 */
53 autoScrollOffset?: number;
54}