UNPKG

ng-flyweight-gallery

Version:

`ng-flyweight-gallery` is a lightweight and customizable Angular component library for creating responsive media galleries. It supports images and videos, with features like autoplay, loop for videos and a responsive layout.

30 lines (29 loc) 1.11 kB
import { DomSanitizer } from '@angular/platform-browser'; import * as i0 from "@angular/core"; export interface MediaItem { id?: number; type: 'image' | 'video'; thumbnail?: string; source: string; title?: string; autoplay?: boolean; loop?: boolean; } export declare class NgFlyweightGalleryComponent { private sanitizer; mediaItems: MediaItem[]; selectedItem?: MediaItem; lightboxOpen: boolean; selectedIndex: number; constructor(sanitizer: DomSanitizer); ngOnInit(): void; sanitizeUrl(url: string): string; generateVideoThumbnail(item: MediaItem, index: number): void; captureVideoThumbnail(event: Event, index: number): void; openLightbox(item: MediaItem, index: number): void; closeLightbox(event?: any): void; prev(): void; next(): void; static ɵfac: i0.ɵɵFactoryDeclaration<NgFlyweightGalleryComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<NgFlyweightGalleryComponent, "ng-flyweight-gallery", never, { "mediaItems": { "alias": "mediaItems"; "required": false; }; }, {}, never, never, false, never>; }