Allow gallery to be assign via data-rel attribute
See original GitHub issueHi! This is more of a feature request than an issue. It would be nice if we could uniquely assign a group gallery via data-rel attribute. So for example I can have the following code.
<a href="largeimage" class="lightbox" data-rel="gallery123"><img src="smallimage" /></a> <a href="largeimage" class="lightbox" data-rel="gallery123"><img src="smallimage" /></a>
So that anything with that data-rel that are the same will be grouped in the same gallery.
Thanks!
Issue Analytics
- State:
- Created 10 years ago
- Reactions:3
- Comments:7
Top Results From Across the Web
jquery - attribute change does not work - Stack Overflow
I'm working on the prettyphoto image gallery. I need to make a gallery with both "all images" category (containing all image categories) and ......
Read more >Add "data-" attribute to image links - WordPress Stack Exchange
You can control the output of the generated code via the image_send_to_editor filter like this: function filter_image_send_to_editor($html ...
Read more >How jQuery Mobile Handles HTML5 data - Peachpit
Let's take a look at a few ways that jQuery Mobile handles data- attributes with dialog windows, popups, and buttons. Creating a Basic...
Read more >Using data attributes - Learn web development | MDN
To get a data attribute through the dataset object, ... Using the CSS selectors and JavaScript access here this allows you to build...
Read more >Create a filtered image gallery with jQuery and Fancybox
The category selector will allow us to filter the gallery by any of the existing ... Notice that we have set a (HTML5)...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I went about it slightly differently (and I hope more simply):
The markup for a trigger is:
Note, I am using the class helper to indicate ‘type’.
We came up with this workaround: