Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Asimov500 opened this issue Feb 16, 2022 · 0 comments

Comments

@Asimov500
Copy link

Asimov500 commented Feb 16, 2022

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;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant