tab.js
Provides tab functionality.
Objects
Methods
CSS classes
Creates Tab object. The element specifies a container where the tab contents will be placed. optionsObject may contain:
- goCallback - function to be called when tab switching occurs. Two parameters will be supplied: old index and new index.
- onUnDock - function to be called when tab undocks. One parameters will be supplied: tab's index.
- onDock - function to be called when tab docks. One parameters will be supplied: tab's index.
- dockMode - true; whether tabs can be undocked into standalone windows. You need to include the 'windows' library.
- dockElement - DOM node (or ID) specifying parent node for tabs; only needed when
dockMode == true
- dockWindowWidth - Sets the width of the dock window
- dockWindowHeight - Sets the height of the dock window
Adds a new clicker - window pair, i.e., when the user clicks clicker, window will be shown.
Removes a clicker - window pair.
Switches to tab, according to index.
var t = new OAT.Tab("content");
t.add("header_1","window_1");
t.add("header_2","window_2");
t.go(0);