panelbar.js
Panelbar widget (like Mozilla sidebar).
Objects
OAT.Panelbar(fadeDelay)
Creates a panelbar. Its main div is accessible as panelbar.div. Fading speed can be controlled via fadeDelay.
Methods
OAT.Panelbar.addPanel(clicker, element)
Adds a new panel, contained in element. It will be shown after clicking on clicker.
OAT.Panelbar.go(index)
Switches to appropriate panel based on index.
CSS classes
.panelbar
ToBeDone
.panelbar_option
ToBeDone
.panelbar option_selected
ToBeDone
.panelbar option_upper
ToBeDone
.panelbar option_lower
ToBeDone
.panelbar_content
ToBeDone
Example
var header = OAT.Dom.create("div"); var body = OAT.Dom.create("div"); var panelbar = new OAT.Panelbar(10); panelbar.addPanel(header, body); panelbar.go(0);
Referenced by...