bootstrap-tabdrop

WebJar for bootstrap-tabdrop

Лицензия

Лицензия

MIT
Группа

Группа

org.webjars.bower
Идентификатор

Идентификатор

bootstrap-tabdrop
Последняя версия

Последняя версия

1.0.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

bootstrap-tabdrop
WebJar for bootstrap-tabdrop
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

https://github.com/nwhite89/bootstrap-tabdrop

Скачать bootstrap-tabdrop

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.webjars.bower/bootstrap-tabdrop/ -->
<dependency>
    <groupId>org.webjars.bower</groupId>
    <artifactId>bootstrap-tabdrop</artifactId>
    <version>1.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.bower/bootstrap-tabdrop/
implementation 'org.webjars.bower:bootstrap-tabdrop:1.0.0'
// https://jarcasting.com/artifacts/org.webjars.bower/bootstrap-tabdrop/
implementation ("org.webjars.bower:bootstrap-tabdrop:1.0.0")
'org.webjars.bower:bootstrap-tabdrop:jar:1.0.0'
<dependency org="org.webjars.bower" name="bootstrap-tabdrop" rev="1.0.0">
  <artifact name="bootstrap-tabdrop" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.bower', module='bootstrap-tabdrop', version='1.0.0')
)
libraryDependencies += "org.webjars.bower" % "bootstrap-tabdrop" % "1.0.0"
[org.webjars.bower/bootstrap-tabdrop "1.0.0"]

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

Данный проект не имеет модулей.

bootstrap-tabdrop

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

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.

Requirements

Example

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

Using bootstrap-tabdrop.js Call the tab drop via javascript on .nav-tabs and .nav-pills:

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

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.

Methods

.tabdrop(options)

Initializes an tab drop.

.tabdrop('layout')

Checks if the tabs fit in one single row.

Event

tabdrop.layout.complete

Triggered when the DOM updates are complete. This can be used to manually initialize the dropdown and the contained tabs.

$('.nav-tabs').tabdrop().on('tabdrop.layout.complete', function () {
  
  // initialize dropdown
  $('.dropdown-toggle').dropdown();

  // initialize items
  $('.dropdown-menu a[data-toggle="tab"]').click(function (e) {
    e.stopPropagation();
    e.preventDefault();
    $(this).tab('show');
  });

});

Версии библиотеки

Версия
1.0.0