UNPKG

@exadel/esl

Version:

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

17 lines (16 loc) 762 B
/** * 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 class ESLCarouselAutoplayEvent extends Event { constructor(init) { super(ESLCarouselAutoplayEvent.NAME, { bubbles: false, cancelable: false }); Object.assign(this, init); } toFingerprint() { const { enabled, paused, blocked, active, duration, remaining, reason } = this; return [enabled, paused, blocked, active, duration, remaining, reason].join('|'); } } ESLCarouselAutoplayEvent.NAME = 'esl:autoplay:change';