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

capture currently visible and clicked image #603

Open
yosiasz opened this issue Feb 1, 2024 · 3 comments
Open

capture currently visible and clicked image #603

yosiasz opened this issue Feb 1, 2024 · 3 comments

Comments

@yosiasz
Copy link

yosiasz commented Feb 1, 2024

Greetings!

What is the expected behavior?
capture the click event of the currently visible image

What is the current behavior?
No sure

What are the steps to reproduce?
implemented (click)=onClick($event) but not sure how to manipulate dom to magnify image via dynamic class

What is the use-case or motivation for changing an existing behavior?
to be able to manipulate and customize style on gallery-image for example enlarge image for better viewing

Which versions are you using for the following packages?
Angular:16
Angular CDK:16.2.13
Angular CLI: 16.2.11
Typescript: 5.1.6
Gallery: 11.0.0

Is there anything else we should know?
tried using recommended zoom library but not fit for our use case

Thanks

@MurhafSousli
Copy link
Owner

MurhafSousli commented Feb 2, 2024

You probably need to use a custom template, then you can use another library to magnify your template like wiki image zoom

@yosiasz
Copy link
Author

yosiasz commented Feb 8, 2024

@MurhafSousli thanks.
does the next beta version feature help with this?

feature: Introduce galleryImage directive within galleryItemDef, to allow recognizing the img element in your custom item template.

@MurhafSousli
Copy link
Owner

Yes this is already implemented in beta version, just add galleryImage directive to your img elements within your galleryItemDef

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants