For the complete experience, please enable JavaScript in your browser. Thank you!

  • Creative Cloud
  • Photoshop
  • Illustrator
  • InDesign
  • Premiere Pro
  • After Effects
  • Lightroom
  • See all
  • See plans for: businesses photographers students
  • Document Cloud
  • Acrobat DC
  • eSign
  • Stock
  • Elements
  • Marketing Cloud
  • Analytics
  • Audience Manager
  • Campaign
  • Experience Manager
  • Media Optimizer
  • Target
  • See all
  • Acrobat Reader DC
  • Adobe Flash Player
  • Adobe AIR
  • Adobe Shockwave Player
  • All products
  • Creative Cloud
  • Individuals
  • Photographers
  • Students and Teachers
  • Business
  • Schools and Universities
  • Marketing Cloud
  • Document Cloud
  • Stock
  • Elements
  • All products
  • Get Support
    Find answers quickly. Contact us if you need to.
    Start now >
  • Learn the apps
    Get started or learn new ways to work.
    Learn now >
  • Ask the community
    Post questions and get answers from experts.
    Start now >
    • About Us
    • Careers At Adobe
    • Investor Relations
    • Privacy  |  Security
    • Corporate Responsibility
    • Customer Showcase
    • Events
    • Contact Us
News
    • 3/22/2016
      Adobe Summit 2016: Are You An Experience Business?
    • 3/22/2016
      Adobe Announces Cross-Device Co-op to Enable People-Based Marketing
    • 3/22/2016
      Adobe and comScore Advance Digital TV and Ad Measurement
    • 3/22/2016
      Adobe Marketing Cloud Redefines TV Experience
CFML Reference / 

ColdFusion.Layout.createAccordionPanel

Adobe Community Help


Applies to

  • ColdFusion

Contact support

 
By clicking Submit, you accept the Adobe Terms of Use.
 

Description

Creates a panel in a ColdFusion accordion layout.

Function syntax

ColdFusion.Layout.createAccordionPanel(layoutname, layoutareaname, title, URL [, config])

See also

cflayout, ColdFusion.Layout.collapseAccordion, ColdFusion.Layout.expandAccordion, 

ColdFusion.Layout.getAccordionLayout, ColdFusion.Layout.hideAccordion, ColdFusion.Layout.selectAccordion, 

ColdFusion.Layout.showAccordion, Using layouts in the Developing ColdFusion Applications

History

ColdFusion 9: Added this function

Parameters

Parameter

Description

{{layout}}name

The name attribute of the accordion layout in which to add the panel.

{{layoutarea}}name

The name to assign for the new accordion panel. Must be unique on the accordion.

title

The text to display on the panel. You can use HTML mark-up to control the title appearance.

URL

The URL from which to get the panel area contents. This attribute can use URL parameters to pass data to the page. ColdFusion uses standard page path resolution rules to locate the page.

config

An object containing configuration parameters. For details, see "Usage".

Returns

This function does not return a value.

Usage

This function dynamically creates panels in an accordion layout; it is equivalent to putting a cflayoutarea tag inside a cflayout tag with a type attribute of accordion. The configuration parameter defines panel characteristics; it can have any or all the following entries:

Entry

Default

Description

align

The cflayout tag align attribute value

Specifies how to align child controls within the panel area. The following values are valid:

  • center
  • justify
  • left
  • right

callbackHandler

��

A function that is called when the layout accordion body has loaded. This function must not take any arguments.

errorHandler

��

A function that is called if an error occurs in loading the tab body. This function must take two arguments:

  • The HTTP status code, or -1 if the error is not an HTTP error
  • An error message

overflow

auto

Specifies how to display child content whose size would cause the tab layout area to overflow the window boundaries. The following values are valid:

  • auto: Show scroll bars when necessary.
  • hidden: Do not allow access to overflowing content.
  • scroll: Always show horizontal and vertical scroll bars, even if they are not needed.
  • visible: Content can display outside the bounds of the layout area.
    Note: In Internet Explorer, layout areas with the visible setting expand to fit the size of the contents, rather than having the contents extend beyond the layout area.

selected

false

A Boolean value specifying whether this tab is initially selected so that its contents appears in the layout.

style

��

A CSS style specification that controls the appearance of the layout area.

titleicon

��

Specifies the location of the icon to display with the title.

Example

The following example creates an accordion layout with one panel. When you click the button it creates a second panel that is immediately visible and selected.The main page looks as follows:

<html>
<head>
</head>
<body>
<cfform name="panels">
<cfinput type="button" name="CreateAccordionPanel"
onClick="ColdFusion.Layout.createAccordionPanel('AccordionPanel','panel2',
'Panel 2','_panelUrl.cfm',{inithide:false,selected:true})"
value="Create Panel">
</cfform>

<cflayout type="panel" name="AccordionPanel">
<cflayoutarea name="panel1" title="Panel 1" align="left">
Default Panel
</cflayoutarea>
</cflayout>
</body>
</html>

The _tabURL.cfm page looks as follows:

<h3>Panel 2</h3>
This is an accordion panel

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

Choose your region United States (Change)   Products   Downloads   Learn & Support   Company
Choose your region Close

Americas

Europe, Middle East and Africa

Asia Pacific

  • Brasil
  • Canada - English
  • Canada - Français
  • Latinoamérica
  • México
  • United States
  • Africa - English
  • Österreich - Deutsch
  • Belgium - English
  • Belgique - Français
  • België - Nederlands
  • България
  • Hrvatska
  • Cyprus - English
  • Česká republika
  • Danmark
  • Eesti
  • Suomi
  • France
  • Deutschland
  • Greece - English
  • Magyarország
  • Ireland
  • Israel - English
  • ישראל - עברית
  • Italia
  • Latvija
  • Lietuva
  • Luxembourg - Deutsch
  • Luxembourg - English
  • Luxembourg - Français
  • Malta - English
  • الشرق الأوسط وشمال أفريقيا - اللغة العربية
  • Middle East and North Africa - English
  • Moyen-Orient et Afrique du Nord - Français
  • Nederland
  • Norge
  • Polska
  • Portugal
  • România
  • Россия
  • Srbija
  • Slovensko
  • Slovenija
  • España
  • Sverige
  • Schweiz - Deutsch
  • Suisse - Français
  • Svizzera - Italiano
  • Türkiye
  • Україна
  • United Kingdom
  • Australia
  • 中国
  • 中國香港特別行政區
  • Hong Kong S.A.R. of China
  • India - English
  • 日本
  • 한국
  • New Zealand
  • Southeast Asia (Includes Indonesia, Malaysia, Philippines, Singapore, Thailand, and Vietnam) - English
  • 台灣

Commonwealth of Independent States

  • Includes Armenia, Azerbaijan, Belarus, Georgia, Moldova, Kazakhstan, Kyrgyzstan, Tajikistan, Turkmenistan, Ukraine, Uzbekistan

Copyright © 2016 Adobe Systems Incorporated. All rights reserved.

Terms of Use | Privacy | Cookies

AdChoices