Open marwl opened 3 years ago
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; });
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.
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