Kris-B / nanoGALLERY

image gallery simplified - jQuery plugin. Touch enabled, responsive, justified/cascading/grid layout and it supports pulling in Flickr, Google Photos and self hosted images.
https://nanogallery2.nanostudio.org/
439 stars 101 forks source link

Dynamically Add and Remove Items #133

Closed woojoo666 closed 7 years ago

woojoo666 commented 7 years ago

Is there a way to add/remove items from the gallery, and then refresh the gallery?

I tried just modifying the "items" array and using nanoGallery('reload'), but it didn't change anything: CodePen

Perhaps it only works with inline elements, and not javascript arrays?

Kris-B commented 7 years ago

This feature is available in nanogallery2 v1.0.0

Here's a codepen example: http://codepen.io/Kris-B/pen/wJKowg