UNPKG

@exadel/esl

Version:

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

28 lines (27 loc) 947 B
import { ESLCarouselPlugin } from '../esl-carousel.plugin'; export interface ESLCarouselKeyboardConfig { /** Prefix for command to request next/prev navigation */ command: 'slide' | 'group' | 'none'; } /** * {@link ESLCarousel} Keyboard arrow support * * @author Alexey Stsefanovich (ala'n) */ export declare class ESLCarouselKeyboardMixin extends ESLCarouselPlugin<ESLCarouselKeyboardConfig> { static is: string; static DEFAULT_CONFIG_KEY: string; /** @returns key code for next navigation */ protected get nextKey(): string; /** @returns key code for prev navigation */ protected get prevKey(): string; /** @returns result command for carousel */ protected getCommandFromKey(key: string): string; /** Handles `keydown` event */ protected _onKeydown(event: KeyboardEvent): void; } declare global { export interface ESLCarouselNS { Keyboard: typeof ESLCarouselKeyboardMixin; } }