UNPKG

@ngx-gallery/core

Version:

Angular gallery directive that hooks the lightbox with the images automatically.

33 lines (32 loc) 1.02 kB
import { InjectionToken, TemplateRef } from '@angular/core'; export declare const GALLERY_CONFIG: InjectionToken<GalleryConfig>; export interface GalleryConfig { nav?: boolean; dots?: boolean; loop?: boolean; thumb?: boolean; zoomOut?: number; navIcon?: string; counter?: boolean; dotsSize?: number; gestures?: boolean; autoPlay?: boolean; thumbWidth?: number; thumbHeight?: number; loadingIcon?: string; loadingError?: string; thumbLoadingIcon?: string; thumbLoadingError?: string; disableThumb?: boolean; panSensitivity?: number; playerInterval?: number; itemTemplate?: TemplateRef<any>; thumbTemplate?: TemplateRef<any>; thumbMode?: 'strict' | 'free'; imageSize?: 'cover' | 'contain'; dotsPosition?: 'top' | 'bottom'; counterPosition?: 'top' | 'bottom'; slidingDirection?: 'horizontal' | 'vertical'; loadingStrategy?: 'preload' | 'lazy' | 'default'; thumbPosition?: 'top' | 'left' | 'right' | 'bottom'; }