JangoSteve/jQuery-EasyTabs — Issue #33: Custom event binding for switching tabs
Author: dwgebler
Created: 2012-03-09 10:34:13+00:00
State: open

HI,
Why not expand the settings to include an "event" option that can be set to click, mouseover, etc. to offer finer control over how tabs are switched? I achieved this with a simple, few line modification to the easytabs JS file.
Added to default options the setting "event: 'click'", then in init function set settings.bind_str to settings.event+".easytabs" then in function bindToTabClicks, bind to settings.bind_str instead of 'click.easytabs'
Then in your HTML file, use $('#tab-container').easytabs({event:'mouseover'}); as an example