orion3dgames / gridder

A jQuery plugin that displays a thumbnail grid expanding preview similar to the effect seen on Google Images.
http://orion3dgames.github.io/gridder/
461 stars 130 forks source link

Callback problem #28

Closed elemis closed 8 years ago

elemis commented 9 years ago

I haven't been able to make Owl Carousel work in the expanded area. Please check the first thumbnail: http://themes.iki-bir.com/gridder/demo/demo.html Could you help me figure out what is missing? (Owl Carousel works outside of gridder but not inside.)

orion3dgames commented 9 years ago

Hello Elemis,

You are not using the correct callback, this is the correct one : onContent

Have a good day!

orion3dgames commented 9 years ago

You will have to destroy the Owl Carousel each time the gridder changes or is closed... Else it will only work for the first one: $('owl-carousel').trigger('destroy.owl.carousel');

elemis commented 9 years ago

Where should I add destroy? To "onChanged" or "onClosed"? Will adding exactly this $('owl-carousel').trigger('destroy.owl.carousel'); be enough?