JavaScript
accordionControl.removeBand Method
Syntax
accordionObj.removeBand(accordionPaneLabel)
Arguments
- accordionPaneLabelstring
The label for the pane to remove.
Description
Removes a pane from an Accordion control.
Discussion
The removeBand method removes a pane from an Accordion control based on the pane's label. If you want to remove a pane from a Tab control, use the .removeTab() method.
Example
//remove a band from the Accordion object with id of 'ACCORDION_1'; //first, get a pointer to the Accordion object var accordionObj = {dialog.object}.getControl('ACCORDION_1'); if (accordionObj) { //then remove band accordionObj.removeBand('My New Band'); }
See Also