ColdFusion.Layout.collapseAccordion

Description

Collapses an area of an accordion layout.

Function syntax

ColdFusion.Layout.collapseAccordion(layoutname, layoutareaname)

History

ColdFusion 9: Added this function

Parameters

Parameter

Description

layoutname

The name attribute of the accordion layout that contains the panel to collapse.

layoutareaname

The name of the panel in the accordion layout to collapse.

Returns

This function does not return a value.

Usage

This function has no effect if the accordion is already collapsed.

Example

The following code snippet collapses the accordion layout when the user clicks the button.

<cfinput name="collapse2" width="100" value="Collapse Area 2" type="button"  
        onClick="ColdFusion.Layout.collapseAccordion('thelayout', 'panel2')>