I have several galleria galleries running in a web page, each in its own div. Galleria.run(#div) is used to run each gallery.
<div id="galleria" class="visible"></div>
<div id="galleria2" class="hidden"></div>
Galleria.run('#galleria',{options})
Galleria.run('#galleria2',{options})
When I collapse a gallery, I want it to be destroyed but I don't know how to retrieve the specific instance.Galleria.get() gives the list of all instances. I want something like.
gallery_array=Galleria.get();
gallery=gallery_array.find('div_id') # Find the specific instance I want to destroy
gallery.destroy();
Is there a way of doing this
Aucun commentaire:
Enregistrer un commentaire