Class: BSTabs

BSTabs

new BSTabs(tabId)

Tab Constructor.

Parameters:
Name Type Description
tabId string

HTML id of the element having nav and nav-tabs classes

Source:

Methods

activateTab(tabId)

Activate a given tab.

Parameters:
Name Type Description
tabId string

Id of the tab to activate

Source:

addTabShowHandler(handler)

Add tab show handler.

Parameters:
Name Type Description
handler function

handler function. this will be passed as first and only argument to the handler.

Source:

(private) fillTabInformation()

Fill tabs object.

Fill the tabs object using the tab HTML id as attribute name

Source:

(private) getActiveTabFromDOM()

Get active tab from DOM

Source:

getTabAnchors() → {Array}

Source:
Returns:
Type
Array

getTabIds() → {Array}

Get all tab IDs.

Source:
Returns:
Type
Array

(private) installTabHandlers()

Source:

(private) tabShowHandler(event)

Tab Show handler.

Sets this.currentTab to the clicked tab and calls all registered tab click handlers.

Parameters:
Name Type Description
event
Source: