@exadel/esl
Version:
Exadel Smart Library (ESL) is the lightweight custom elements library that provide a set of super-flexible components
36 lines (35 loc) • 1.2 kB
TypeScript
import { ESLCarouselPlugin } from '../esl-carousel.plugin';
export interface ESLCarouselAutoplayConfig {
/** Timeout to send next command to the host carousel */
timeout: number;
/** Navigation command to send to the host carousel. Default: 'slide:next' */
command: string;
}
/**
* {@link ESLCarousel} autoplay (auto-advance) plugin mixin
* Automatically switch slides by timeout
*
* @author Alexey Stsefanovich (ala'n)
*/
export declare class ESLCarouselAutoplayMixin extends ESLCarouselPlugin<ESLCarouselAutoplayConfig> {
static is: string;
static DEFAULT_CONFIG_KEY: string;
private _timeout;
get active(): boolean;
protected connectedCallback(): void;
protected disconnectedCallback(): void;
protected onConfigChange(): void;
/** Activates the timer to send commands */
start(): void;
/** Deactivates the timer to send commands */
stop(): void;
/** Handles next timer interval */
protected _onInterval(): void;
/** Handles auxiliary events to pause/resume timer */
protected _onInteract(e: Event): void;
}
declare global {
export interface ESLCarouselNS {
Autoplay: typeof ESLCarouselAutoplayMixin;
}
}