@ngx-gallery/core
Version:
Angular gallery directive that hooks the lightbox with the images automatically.
40 lines (39 loc) • 1.31 kB
TypeScript
import { OnInit, EventEmitter, OnDestroy } from '@angular/core';
import { DomSanitizer, SafeHtml, SafeStyle } from '@angular/platform-browser';
export declare class GalleryImageComponent implements OnInit, OnDestroy {
private _sanitizer;
/** Stream that emits the state */
private readonly _state;
readonly state: import("rxjs").Observable<"failed" | "loading" | "success">;
/** Progress value */
progress: number;
/** Is thumbnail */
isThumbnail: boolean;
/** Image source URL */
src: string;
/** Loaded image URL */
imageUrl: SafeStyle;
/** Custom loader template */
loadingIcon: string;
/** Custom loader safe template */
loaderTemplate: SafeHtml;
/** Custom error template */
loadingError: string;
/** Custom error safe template */
errorTemplate: SafeHtml;
/** Stream that emits when an error occurs */
error: EventEmitter<Error>;
/** loading error */
loadError: Error;
readonly imageLoadSuccess: boolean;
readonly imageLoadFailed: boolean;
constructor(_sanitizer: DomSanitizer);
ngOnInit(): void;
ngOnDestroy(): void;
onProgress({ loaded, total }: {
loaded: number;
total: number;
}): void;
onLoaded(blobUrl: string): void;
onError(err: Error): void;
}