1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- import { CSSSelector } from '../shared';
- import Swiper from '../swiper-class';
- export interface NavigationMethods {
- /**
- * HTMLElement of "next" navigation button
- */
- nextEl: HTMLElement;
- /**
- * HTMLElement of "previous" navigation button
- */
- prevEl: HTMLElement;
- /**
- * Update navigation buttons state (enabled/disabled)
- */
- update(): void;
- /**
- * Initialize navigation
- */
- init(): void;
- /**
- * Destroy navigation
- */
- destroy(): void;
- }
- export interface NavigationEvents {
- /**
- * Event will be fired on navigation hide
- */
- navigationHide: (swiper: Swiper) => void;
- /**
- * Event will be fired on navigation show
- */
- navigationShow: (swiper: Swiper) => void;
- }
- export interface NavigationOptions {
- /**
- * String with CSS selector or HTML element of the element that will work
- * like "next" button after click on it
- *
- * @default null
- */
- nextEl?: CSSSelector | HTMLElement | null;
- /**
- * String with CSS selector or HTML element of the element that will work
- * like "prev" button after click on it
- *
- * @default null
- */
- prevEl?: CSSSelector | HTMLElement | null;
- /**
- * Toggle navigation buttons visibility after click on Slider's container
- *
- * @default false
- */
- hideOnClick?: boolean;
- /**
- * CSS class name added to navigation button when it becomes disabled
- *
- * @default 'swiper-button-disabled'
- */
- disabledClass?: string;
- /**
- * CSS class name added to navigation button when it becomes hidden
- *
- * @default 'swiper-button-hidden'
- */
- hiddenClass?: string;
- /**
- * CSS class name added to navigation button when it is disabled
- *
- * @default 'swiper-button-lock'
- */
- lockClass?: string;
- }
|