Index | OAT homepage | OpenLink Software

# OATDOCpanelbar

- OATDOCpanelbar
- _ _ panelbar.js
- _ _ _ _ Objects
- _ _ _ _ _ _ OAT.Panelbar(fadeDelay)
- _ _ _ _ Methods
- _ _ _ _ _ _ OAT.Panelbar.addPanel(clicker, element)
- _ _ _ _ _ _ OAT.Panelbar.go(index)
- _ _ _ _ CSS classes
- _ _ _ _ _ _ .panelbar
- _ _ _ _ _ _ .panelbar_option
- _ _ _ _ _ _ .panelbar
- _ _ _ _ _ _ .panelbar
- _ _ _ _ _ _ .panelbar
- _ _ _ _ _ _ .panelbar_content
- _ _ _ _ Example

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

Copyright (C) 2005-2008 OpenLink Software