sachinchoolur / lightgallery.js

Full featured JavaScript image & video gallery. No dependencies
https://sachinchoolur.github.io/lightgallery.js/
Other
5.3k stars 596 forks source link

Append new items to the gallery after initialization #84

Closed adirkandel closed 3 years ago

adirkandel commented 6 years ago

I'm trying to find a way on how i can append new slides and thumbs after i initialize it.

For now, every time i add a new item to my gallery i initialize again the lightgallry so it rerenders the slides with the new added items and it's very not performant.

Does anyone know or encountered that issue and can help me solve it?

usb248 commented 6 years ago

I would like this functionality too... The API seems to be not enough succeeded...

cnhuye commented 6 years ago

+1

I working for a task , add or remove a image item from the gallery dynamiclly. But right now seems no way to do that.

giammin commented 5 years ago

the only way I found is to .destroy(true) and re-initiate

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. If the issue is still valid for version 2.x, please re-open. Apologize for not responding on time. Thank you for your contributions.