forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
owlcarousel.d.ts
62 lines (57 loc) · 1.68 KB
/
owlcarousel.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
61
62
// Type definitions for OwlCarousel v.1.3.3
// Project: https://github.com/OwlFonk/OwlCarousel
// Definitions by: Damian Piątkowski <https://github.com/dpiatkowski>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="../jquery/jquery.d.ts" />
interface IOwlCarouselOptions {
// options
items: number;
itemsDesktop: number[];
itemsDesktopSmall: number[];
itemsTablet: number[];
itemsTabletSmall: any;
itemsMobile: number[];
itemsCustom: any;
singleItem: boolean;
itemsScaleUp: boolean;
slideSpeed: number;
paginationSpeed: number;
rewindSpeed: number;
autoPlay: any;
stopOnHover: boolean;
navigation: boolean;
navigationText: any;
rewindNav: boolean;
scrollPerPage: boolean;
pagination: boolean;
paginationNumbers: boolean;
responsive: boolean;
responsiveRefreshRate: number;
responsiveBaseWidth: JQuery;
baseClass: string;
theme: string;
lazyLoad: boolean;
lazyFollow: boolean;
lazyEffect: any;
autoHeight: boolean;
jsonPath: any;
jsonSuccess: (data: any) => void;
dragBeforeAnimFinish: boolean;
mouseDrag: boolean;
touchDrag: boolean;
addClassActive: boolean;
transitionStyle: any;
// callbacks
beforeUpdate: (params?: any) => void;
afterUpdate: (params?: any) => void;
beforeInit: (params?: any) => void;
afterInit: (params?: any) => void;
beforeMove: (params?: any) => void;
afterMove: (params?: any) => void;
afterAction: (params?: any) => void;
startDragging: (params?: any) => void;
afterLazyLoad: (params?: any) => void;
}
interface JQuery {
owlCarousel(options?: any): JQuery;
}