UNPKG

@ks89/angular-modal-gallery

Version:
17 lines (16 loc) 631 B
import { TemplateRef } from '@angular/core'; import { Image } from './image.class'; import { ModalLibConfig } from './lib-config.interface'; export interface ModalGalleryConfig { id: number; images: Image[]; currentImage: Image; libConfig?: ModalLibConfig; /** * Optional template reference for the rendering of previews. * Template may access following context variables: * - "preview": the `Image` object of the preview * - "defaultTemplate": the template used by default to render the preview (in case the need is to augment it) */ previewsTemplate?: TemplateRef<HTMLElement>; }