123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- declare class BaseComponent {
- element: Element;
- options?: BaseOptions;
-
- constructor(target: Element | string, config?: BaseOptions);
- get version(): string;
- get name(): string;
- get defaults(): {};
-
- _toggleEventListeners: () => void;
-
- dispose(): void;
- }
- declare interface BaseOptions {
- [key: string]: unknown;
- }
- declare class Carousel extends BaseComponent {
- static selector: string;
- static init: (element: Element) => Carousel;
- static getInstance: (element: Element) => Carousel | null;
- element: HTMLElement;
- options: CarouselOptions;
- direction: "right" | "left";
- index: number;
- isTouch: boolean;
- slides: HTMLCollectionOf<HTMLElement>;
- controls: HTMLElement[];
- indicator: HTMLElement | null;
- indicators: HTMLElement[];
-
- constructor(target: Element | string, config?: Partial<CarouselOptions>);
-
- get name(): string;
-
- get defaults(): CarouselOptions;
-
- get isPaused(): boolean;
-
- get isAnimating(): boolean;
-
- cycle(): void;
-
- pause(): void;
-
- next(): void;
-
- prev(): void;
-
- to(idx: number): void;
-
- _toggleEventListeners: (add?: boolean) => void;
-
- dispose(): void;
- }
- export default Carousel;
- declare interface CarouselOptions extends BaseOptions {
- pause: boolean | "hover";
- keyboard: boolean;
- touch: boolean;
- interval: number | boolean;
- }
- export { }
|