Class BTM.UI.Tabs
Dynamic Tabbed UI
Defined in: ui.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
BTM.UI.Tabs(element, options)
|
| Method Attributes | Method Name and Description |
|---|---|
|
ajaxLoaded(tab)
Event handler for when an AJAX Tab loads
|
|
|
hideTab(tab)
Hide the specified Tab
|
|
|
loadFromAJAX(tab, showAfterLoad)
Load the content for an AJAX Tab
|
|
|
showTab(tab)
Show the specified Tab
|
| Event Attributes | Event Name and Description |
|---|---|
|
clicked(event, tab)
Event handler for when a Tab is clicked
|
Class Detail
BTM.UI.Tabs(element, options)
- Parameters:
- {HTMLElement|String} element
- element ID or reference to element to build Dynamic Tabs from
- {Object} options Optional
- the options object
- {Boolean} options.preloadAJAX Optional, Default: false
- flag to pre-load AJAX tabs when the document loads
Method Detail
ajaxLoaded(tab)
Event handler for when an AJAX Tab loads
- Parameters:
- {HTMLElement|String|Number} tab
- element ID, element reference or Tab Index
hideTab(tab)
Hide the specified Tab
- Parameters:
- {HTMLElement|String|Number} tab
- element ID, element reference or Tab Index
loadFromAJAX(tab, showAfterLoad)
Load the content for an AJAX Tab
- Parameters:
- {HTMLElement|String|Number} tab
- element ID, element reference or Tab Index
- {Boolean} showAfterLoad
- flag to specify whether the Tab should be shown when the AJAX content has loaded
showTab(tab)
Show the specified Tab
- Parameters:
- {HTMLElement|String|Number} tab
- element ID, element reference or Tab Index
Event Detail
clicked(event, tab)
Event handler for when a Tab is clicked
- Parameters:
- {Event} event
- the Event object that triggered this
- {HTMLElement|String|Number} tab
- element ID, element reference or Tab Index