Description

Collapses an area of an accordion layout.

Function syntax

ColdFusion.Layout.collapseAccordion(layoutname, layoutareaname)

See also

cflayout,ColdFusion.Layout.createAccordionPanelColdFusion.Layout.expandAccordionColdFusion.Layout.getAccordionLayout

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

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Twitter™ and Facebook posts are not covered under the terms of Creative Commons.

Legal Notices   |   Online Privacy Policy