Skip to content

4.4.0

Compare
Choose a tag to compare
@jonnitto jonnitto released this 07 Feb 15:00
· 9 commits to master since this release
a8b3a11

Javascript event listener

If you dispatch the event neos-photoswipe:init all type of lightboxes get initialized. Great if you work in AJAX
enviroments. You can also activate a specific type of lightbox: neos-photoswipe.images:init,
neos-photoswipe.fetch:init or neos-photoswipe.template:init.

Example:

window.dispatchEvent(new Event("neos-photoswipe:init"));

Full Changelog: 4.3.0...4.4.0