Description
Collapses an area of an accordion layout.
Function syntax
ColdFusion.Layout.collapseAccordion(layoutname, layoutareaname) |
See also
cflayout,ColdFusion.Layout.createAccordionPanel, ColdFusion.Layout.expandAccordion, ColdFusion.Layout.getAccordionLayout,
ColdFusion.Layout.hideAccordion, ColdFusion.Layout.selectAccordion, ColdFusion.Layout.showAccordion,
Using layouts in Controlling Ajax user interface layout the Developing ColdFusion Applications
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" |