This repository has been archived by the owner on Oct 27, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
60 lines (57 loc) · 1.77 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
import { Vue2TouchEventsOptions } from "vue2-touch-events";
import { ComponentOptions } from "vue/types/umd";
export interface DotsData {
margin?: string;
padding?: string;
dots?: {
size?: number;
spacing?: number;
};
}
export interface Carousel {
readonly translateValue: number;
readonly trackWidth: number;
readonly carouselElementWidth: number;
readonly currentSlideIndex: number;
readonly currentPageIndex: number;
readonly autoplayIntervalId: number;
readonly disabled: boolean;
readonly autoHeight: boolean;
readonly autoplay: boolean;
readonly manualInitialize: boolean;
readonly stopAutoplayHover: boolean;
readonly enableButtons: boolean;
readonly enableDots: boolean;
readonly goBackOnEnd: boolean;
readonly navigateBySlide: boolean;
readonly draggable: boolean;
readonly speed: number;
readonly autoplayTimeout: number;
readonly itemsPerView: number;
readonly hideButtonsOnStartEnd: boolean;
readonly dotsData: DotsData;
readonly touchOptions: Vue2TouchEventsOptions;
readonly showPrevButton: boolean;
readonly showNextButton: boolean;
readonly itemsCount: number;
readonly maximumSlideIndex: number;
readonly pages: number;
readonly itemsPerPage: number[];
goToBeginning: () => void;
next: (autoplay?: boolean) => void;
onNextBySlide: (autoplay?: boolean) => void;
onNextByPage: (autoplay?: boolean) => void;
prev: () => void;
onPrevBySlide: () => void;
onPrevByPage: () => void;
setCarouselSizingSettings: () => void;
goToPage: (pageIndex: number) => void;
onDragNext: () => void;
onDragPrev: () => void;
stopAutoplay: () => void;
startAutoplay: () => void;
initialize: () => void;
destroy: () => void;
}
declare const Vue2SimpleCarousel: ComponentOptions<Vue>;
export default Vue2SimpleCarousel;