ngx-lightbox icon indicating copy to clipboard operation
ngx-lightbox copied to clipboard

Over-riding Lightbox options in one component, over-rides them in all components.

Open Asimov500 opened this issue 3 years ago • 0 comments

I have one component where I am over-riding the lightbox, but it seems to add the same options where I am not over-riding the components. What if I want different options on different components?

constructor(private adminService: AdminService,
		  private generalService: GeneralService,
		  private _lightbox: Lightbox,
		  private _lightboxConfig: LightboxConfig) {
	_lightboxConfig.disableScrolling=true;
	_lightboxConfig.fitImageInViewPort=true;
	_lightboxConfig.centerVertically=true;
	_lightboxConfig.showImageNumberLabel=true;
}

Asimov500 avatar Feb 16 '22 12:02 Asimov500