@ngx-gallery/core
Version:
Angular gallery directive that hooks the lightbox with the images automatically.
28 lines (27 loc) • 688 B
TypeScript
import { GalleryRef } from './gallery-ref';
import { GalleryConfig } from '../models/config.model';
export declare class Gallery {
/** Store gallery instances */
private readonly _instances;
/** Global config */
config: GalleryConfig;
constructor(config: GalleryConfig);
/**
* Get or create gallery by ID
* @param id
* @param config
*/
ref(id?: string, config?: GalleryConfig): GalleryRef;
/**
* Destroy all gallery instances
*/
destroyAll(): void;
/**
* Reset all gallery instances
*/
resetAll(): void;
/**
* A destroyer function for each gallery instance
*/
private deleteInstance;
}