vdw / Tabslet

Yet another jQuery plugin for tabs, lightweight, easy to use, mobile-friendly and with some extra features.
http://vdw.github.io/Tabslet/
Apache License 2.0
565 stars 110 forks source link

OnPageLoad: Define active tab via html #47

Closed flowdee closed 8 years ago

flowdee commented 8 years ago

Looking for a way to define the active tab on pageload by html instead of using the "active" attribute on JS.

Is it possible right now? Couldn't fine anything. Otherwise it would be very cool to get this feature 👍

vdw commented 8 years ago

Hi, yes it is. You can initialize and configure Tabslet using only data attributes.

E.g.: https://jsfiddle.net/dkrestos/cyzocx7r/

flowdee commented 8 years ago

Perfect, thanks!