nanostudio-org / nanogallery2

a modern photo / video gallery and lightbox [JS library]
https://nanogallery2.nanostudio.org
755 stars 111 forks source link

Use lightbox standalone , without gallery. How use API ? #408

Open YKStepanov opened 7 months ago

YKStepanov commented 7 months ago

I only use Lightbox without gallery. I marked all the objects with the data-nanogallery2-lightbox attribute. Lightbox works great. But how can I access the API? I don't have a gallery root element , this code don't work $('#your_nanogallery2').nanogallery2('method', options);