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

How to call a gridder close function on button click #56

Open Kaivalyashah09 opened 7 years ago

Kaivalyashah09 commented 7 years ago

I have different tabs on my webpage I want to be able to close the expander when I go to the another tab how would I call the close function?

tmurren commented 6 years ago

This should work. Add it to the gridder JS file below the / CLOSE BUTTON / section. Basically you use the closeExpander(_this) on click.

$('.tab').on("click", function() {
   closeExpander(_this);
});