1.2.6 • Published 8 years ago

jquery-sticky-bootstrap-tabs v1.2.6

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

jquery-sticky-bootstrap-tabs

npm version

Provides pushState (back and forward button support) to Bootstrap tabs

Install

NPM

type npm install jquery-sticky-bootstrap-tabs --save to install the library via NPM

Bower

type bower install jquery-sticky-bootstrap-tabs --save to install the library via bower

Usage

Run this in document ready or some equivalent initializer on your page:

$('.nav-tabs').stickyTabs();

Where nav-tabs is the default class for the bootstrap tabs feature.

Options

The following options are available to pass to jquery-sticky-bootstrap-tabs on instantiation

Example

$(function() {
	var options = { 
		selectorAttribute: "data-target",
		backToTop: true
	};
	$('.nav-tabs').stickyTabs( options );
});
optiondefaultdescription
selectorAttributefalseOverride the default href attribute used as selector when you need to activate multiple TabPanels at once with a single Tab using the data-target attribute.
backToTopfalsePrevent the page from jumping down to the tab content by setting the backToTop setting to true.
showParentTabsfalseShow the parent tabs so the selected tab comes into view if it is part of another tab grouping.
showTabUsingClickTriggerfalseActivate the requeted tab using the click trigger so that any behaviours on the click trigger are activated.