tab.js

Provides tab functionality.

Objects

OAT.Tab(element,options)

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

Methods

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.

CSS classes

.tab

ToBeDone?

.tab_selected

ToBeDone?

Example


var t = new OAT.Tab("content");
t.add("header_1","window_1");
t.add("header_2","window_2");
t.go(0);

CategoryOAT CategoryOpenSource CategoryDocumentation CategoryToBeDone?