jellekralt / Responsive-Tabs

Responsive Tabs is a jQuery plugin that provides responsive tab functionality. The tabs transform to an accordion when it reaches a CSS breakpoint. You can use this plugin as a solution for displaying tabs elegantly on desktop, tablet and mobile.
http://jellekralt.github.io/Responsive-Tabs/
MIT License
531 stars 228 forks source link

Load and emitted events #154

Open eyekanspele opened 5 years ago

eyekanspele commented 5 years ago

I am trying to key on when the accordion loads, however using the "load" option to attach a function does not seem to fire, and trying the "tabs-load" does not work either.

Can you please explain how to use this features?

I have tried the following:

$('#tab-container').responsiveTabs({
      <otheroptions>,
      load: function () {
        console.log("test");
      }
  });
$('#tab-container').responsiveTabs({
      <otheroptions>,
      load: function (event, firstTab) {
        console.log("test");
      }
  });

and:

$('#tab-container').responsiveTabs({
      <otheroptions>
  }).on('tabs-load', function () {
        console.log("test");
      });

And I am not seeing my log statements. I see other log statements that I ahve running on the page, and have tried warn() and error() just to see.

face2005 commented 3 years ago

developers are too lazy to answer? or don't know what to say?