Skip to content

A fork of Stefan Petre's bootstrap-tabdrop.js, which shows the active tab plus a dropdown of all the tabs, when they don't fit

License

Notifications You must be signed in to change notification settings

carterschieffer/bootstrap-tabdrop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

bootstrap-tabdrop

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.

Dependencies

Usage

Call the tabdrop via javascript on .nav-tabs and .nav-pills (as appropriate) with an optional options object:

$('.nav-pills, .nav-tabs').tabdrop(options);

Options

text

Allows for customisation of the contents of the toggle anchor on the dropdown tab.

Type: string

Default: More

Methods

.tabdrop(options)

Initialises a tab drop.

.tabdrop(options);

.tabdrop('layout')

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');

About

A fork of Stefan Petre's bootstrap-tabdrop.js, which shows the active tab plus a dropdown of all the tabs, when they don't fit

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published