new BSTabs(tabId)
Tab Constructor.
Parameters:
Name | Type | Description |
---|---|---|
tabId |
string | HTML id of the element having |
Methods
activateTab(tabId)
Activate a given tab.
Parameters:
Name | Type | Description |
---|---|---|
tabId |
string | Id of the tab to activate |
addTabShowHandler(handler)
Add tab show handler.
Parameters:
Name | Type | Description |
---|---|---|
handler |
function | handler function. |
(private) fillTabInformation()
Fill tabs object.
Fill the tabs object using the tab HTML id as attribute name
(private) getActiveTabFromDOM()
Get active tab from DOM
getTabAnchors() → {Array}
Returns:
- Type
- Array
getTabIds() → {Array}
Get all tab IDs.
Returns:
- Type
- Array
(private) installTabHandlers()
(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 |