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

Emit Events #25

Closed justrhysism closed 10 years ago

justrhysism commented 10 years ago

I'd like to be able to bind to events without having to set them up during the plugin initialisation.

Can the activate, deactivate etc events actually trigger that event (namespaced of course) so they can be bound just like a 'click' event?

jellekralt commented 10 years ago

Hi there,

I havent documented this yet, but the plugin actually already emits events :). The events are emitted on the element the tabs are initialised on (the container). You can use the following events:

I'll properly add these references to the readme later :).

justrhysism commented 10 years ago

Sweet!