tab.js

Provides tab functionality.


Objects

Methods

CSS classes


Tab(element)

Creates Tab object. The element specifies a container where tab contents will be placed.

Tab::add(clicker, window)

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

Tab::go(index)

Switches to tab, according to index.

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