You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I already have a reference to the Element I want to use for the gallery, and it would be much easier to be able to just pass this into the lightbox options rather than have to assign it an ID to select.
I think the ideal API for the options would look like this:
typeOptions={// If string, convert into a NodeList via document.querySelectorAllgallery: string|Element|NodeList|Array;children: string|Element|NodeList|Array;};// examplenewPhotoSwipeLightbox({gallery: myGalleryElement,children: 'a',pswpModule: PhotoSwipe});
I'd be happy to do a PR if this is a change you would welcome.
The text was updated successfully, but these errors were encountered:
I already have a reference to the Element I want to use for the gallery, and it would be much easier to be able to just pass this into the lightbox options rather than have to assign it an ID to select.
I think the ideal API for the options would look like this:
I'd be happy to do a PR if this is a change you would welcome.
The text was updated successfully, but these errors were encountered: