JavaScript UI component library, includes the latest Fancybox
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

42 lines
1.3 KiB

import { Plugin } from "../../../shared/Base/Plugin";
import type { AutoplayOptionsType } from "../../../Carousel/plugins/Autoplay/Autoplay";
import { Fancybox } from "../../Fancybox";
export type OptionsType = {
/**
* Custom options for Carousel Autoplay plugin instance, see relevant documentation for more information
*/
Autoplay?: Partial<AutoplayOptionsType>;
/**
* Keyboard shortcut to toggle Slideshow
*/
key: string;
/**
* If the slideshow should automatically activate after Fancybox is launched
*/
playOnStart: boolean;
/**
* Change where progress bar is appended
*/
progressParentEl: HTMLElement | null | ((slideshow: Slideshow) => HTMLElement | null);
/**
* Delay (in milliseconds) before the slide change
*/
timeout: number;
};
export declare const defaultOptions: OptionsType;
export type SlideshowOptionsType = Partial<OptionsType>;
declare module "../../../Fancybox/options" {
interface PluginsOptionsType {
Slideshow: Boolean | Partial<SlideshowOptionsType>;
}
}
export declare class Slideshow extends Plugin<Fancybox, SlideshowOptionsType, ""> {
static defaults: OptionsType;
private ref;
private onPrepare;
private onReady;
private onDone;
private onKeydown;
attach(): void;
detach(): void;
}