UNPKG

@exadel/esl

Version:

Exadel Smart Library (ESL) is the lightweight custom elements library that provide a set of super-flexible components

27 lines (26 loc) 1.2 kB
import type { ESLCarousel } from '../../core/esl-carousel'; import type { ESLCarouselAutoplayMixin } from './esl-carousel.autoplay.mixin'; interface ESLCarouselAutoplayEventInit { /** Whether autoplay plugin is enabled or disabled */ enabled: boolean; /** Whether autoplay cycle is currently active */ active: boolean; /** Duration of the current autoplay cycle in milliseconds */ duration: number; } /** * ESLCarouselAutoplayEvent (esl:autoplay:change) event is dispatched by {@link ESLCarouselAutoplayMixin} * on the host {@link ESLCarousel} element when autoplay state changes. * It indicates whether autoplay is enabled or disabled, or notifies about the current autoplay cycle start. */ export declare class ESLCarouselAutoplayEvent extends Event implements ESLCarouselAutoplayEventInit { static readonly NAME = "esl:autoplay:change"; readonly type: typeof ESLCarouselAutoplayEvent.NAME; target: ESLCarousel; readonly enabled: boolean; readonly active: boolean; readonly duration: number; protected constructor(init: ESLCarouselAutoplayEventInit); static dispatch(plugin: ESLCarouselAutoplayMixin, duration: number): boolean; } export {};