Skip to content

A dropdown tab tool for @twitter bootstrap forked from Stefan Petre's (of eyecon.ro), improvements by @jschab

Notifications You must be signed in to change notification settings

t673afa/bootstrap-tabdrop

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

bootstrap-tabdrop

A dropdown tab tool for @twitter bootstrap forked from Stefan Petre's (of eyecon.ro), improvements by @jschab

The dropdown tab appears when your tabs do not all fit in the same row.

Original site and examples: http://www.eyecon.ro/bootstrap-tabdrop/

Added functionality: Displays the text of an active tab selected from the dropdown list instead of the text option on the dropdown tab (improved).

Added functionality: Allows customizable offset to determine whether tab is overflown or not.

Requirements

Example

No additional HTML needed - the script adds it when the dropdown tab is needed.

Direct javascript:

this.$('.nav-tabs').tabdrop();

Use

Call the tabdrop:

.tabdrop();

Call the tabdrop with options:

.tabdrop(options);

Options

text

Type: string

Default: icon

<i class="icon-align-justify"></i>

To change the default value, call

.tabdrop({text: "your text here"});

when initalizing the tabdrop. The displayed value will change when a tab is selected from the dropdown list.

offsetTop

Type: integer

Default: 0

To change the default value, call

.tabdrop({offsetTop: N});

when initalizing the tabdrop. This determines when tab has to be included in the dropdown.

Methods

layout

Checks to see if the tabs all fit in one row and displays the text of an active tab in the list:

.tabdrop('layout');

About

A dropdown tab tool for @twitter bootstrap forked from Stefan Petre's (of eyecon.ro), improvements by @jschab

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published