ngx-crystal-gallery
Version:
Responsive gallery with support for masonry layout and lightbox.
19 lines (18 loc) • 814 B
TypeScript
import { Injector, ComponentFactoryResolver, ApplicationRef } from '@angular/core';
import { LightboxComponent } from './lightbox.component';
import { LightboxMobileComponent } from './lightbox-mobile.component';
export interface AdComponent {
data: any;
close: any;
}
export declare class CrystalLightbox {
private componentFactoryResolver;
private appRef;
private injector;
readonly isMobile: boolean;
constructor(componentFactoryResolver: ComponentFactoryResolver, appRef: ApplicationRef, injector: Injector);
appendComponentToBody(component: any, data: any): void;
open(images: any, config?: any): void;
getLightboxComponent(): typeof LightboxComponent | typeof LightboxMobileComponent;
applyConfigDefaults(defaultConfig: any, config: any): any;
}