This is a fork of Stefan Petre's bootstrap-tabdrop.js, the original of which can be found at http://eyecon.ro/bootstrap-tabdrop.
For use with the bootstrap tab component. Shows only the active tab and a dropdown which contains all tabs, when your tabs don't fit in a single row.
Works with horizontal tabs and pills.
Call the tabdrop via javascript on .nav-tabs
and .nav-pills
(as appropriate) with an optional options object:
$('.nav-pills, .nav-tabs').tabdrop(options);
Allows for customisation of the contents of the toggle anchor on the dropdown tab.
Type: string
Default: More
Initialises a tab drop.
.tabdrop(options);
Will ensure that tabs are correctly displayed. This will happen automatically on window resize and when calling tabdrop()
, but you can call it manually if you desire.
.tabdrop('layout');