JavaScript

accordionControl.addBand Method

Syntax

accordionObj.addBand(accordionPaneLabel, html);

Arguments

accordionPaneLabel

The label for the new pane.

html

The HTML to show in the pane.

Description

Adds a new pane to the Accordion control.

Discussion

Creates a new pane and adds it to the Accordion control. The new pane is added at the end. If you want to add a pane to Tab control, use the .addTab() method.

Example

//add a new band to the Accordion object with id of 'TAB_1';
//first, get a pointer to the Accordion object
var accordionObj = {dialog.object}.getControl('TAB_1');

//then add the new pane
accordionObj.addBand('My New Band','This is the html that I want to display');

See Also