-
Notifications
You must be signed in to change notification settings - Fork 26
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
Ability to customize gallery items #95
Comments
This lib is supposed to achieve your goal, out of the box, but I may be misundertanding your need. I'm not even sure if you're talking about the gallery (list with thumbnails) or the photoswipe zoom part. I can answer for the gallery itself : Consider setting the option new NaturalGallery.Natural(galleryElement, {activable: true}, scrollableElement) Each item in the gallery gets a button, with CSS class that allows you to customize it. Then use
Does it answer your question ? or do you mean adding an additionnal button ( = 2 buttons by thumbnail). |
Hi. I noticed that currently is quite hard to do any customization on gallery items.
I need to add a button to each image and I thought about two solutions:
Modify
'item-added-to-dom'
event so it returns alsoitem.element
instead onlyitem.model
,or make a custom method in Item class similar to what photoSwipe did:
The text was updated successfully, but these errors were encountered: