PhotoSwipe
PhotoSwipe copied to clipboard
v5-beta custom html data-attribute on element
Hi, I tried out v5-beta and it looks great! One small thing though. It would be really nice if photoswipe could pick up the data-pswp-html attribute from the element, the same way it's handled in the array datasource. Thanks
For the meantime I am using:
lightbox.on('itemData', (e) => { e.itemData.html = e.itemData.element.dataset.pswpHtml; });
I support this request!
Same. I'd love to more easily add HTML to a gallery if possible.