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 227 forks source link

Check/Return state on load #84

Closed lewismcarey closed 8 years ago

lewismcarey commented 8 years ago

It would be handy to know the current state of the tabs (accordion/tabs) on load. It only appears to be available on a state change.

Is this possible already, if not can it be added easily?

lewismcarey commented 8 years ago

I have tried using the public getState method using:

$tabs.responsiveTabs('getState');

But this does not seem to work.

jellekralt commented 8 years ago

Hi, I checked and it turned out that public method returns didn't work correctly. I've fixed it and released a new version (v1.5.2) in which this should work:

$tabs.responsiveTabs('getState');