Files
DefinitelyTyped/types/owlcarousel/index.d.ts
2018-01-11 09:33:26 -08:00

66 lines
1.8 KiB
TypeScript

// Type definitions for OwlCarousel 1.3
// Project: https://github.com/OwlFonk/OwlCarousel
// Definitions by: Damian Piątkowski <https://github.com/dpiatkowski>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
/// <reference types="jquery" />
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 | string;
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;
loop?: boolean;
nav?: 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?: IOwlCarouselOptions): JQuery;
}