Whatever message this page gives is out now! Go check it out!

ColdFusion.Layout.collapseAccordion

Last update:
May 18, 2026

Description

Collapses an area of an accordion layout.

Function syntax

ColdFusion.Layout.collapseAccordion(layoutname, layoutareaname)

See also

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" 
 onClick="ColdFusion.Layout.collapseAccordion('thelayout', 'panel2')>

Share this page

Was this page helpful?
We're glad. Tell us how this page helped.
We're sorry. Can you tell us what didn't work for you?
Thank you for your feedback. Your response will help improve this page.

On this page