tab.js

Provides tab functionality.


Objects

Methods

CSS classes


OAT.Tab(element,optionsObject)

Creates Tab object. The element specifies a container where the tab contents will be placed. optionsObject may contain:

OAT.Tab.add(clicker, window)

Adds a new clicker - window pair, i.e., when the user clicks clicker, window will be shown.

OAT.Tab.remove(clicker)

Removes a clicker - window pair.

OAT.Tab.go(index)

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);