how to disable Accordion layout?

New Here ,
Sep 05, 2014 Sep 05, 2014

Copy link to clipboard

Copied

Is there a same function like ColdFusion.Layout.disableTab to disable Accordion layout? Thanks!!

Views

194

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Sep 06, 2014 Sep 06, 2014

Copy link to clipboard

Copied

You could toggle between

ColdFusion.Layout.expandAccordion and ColdFusion.Layout.collapseAccordion

or between

ColdFusion.Layout.showAccordion and ColdFusion.Layout.hideAccordion

For example,

<CFLAYOUT type="accordion" name="accordionHomeInformation" align="left">

    <CFLAYOUTAREA title="Home Information" name="panelHomeInformation">

Address and other details

</CFLAYOUTAREA>

</CFLAYOUT>

<CFLAYOUT type="accordion" name="accordionSensitiveInformation" align="left">

    <CFLAYOUTAREA title="Sensitive Information" name="panelSensitiveInformation">

Abracadabra

</CFLAYOUTAREA>

</CFLAYOUT>

<cfform>

<!---  

    <cfinput type="button" name="ShowAccordion" value="Show Sensitive Information"

        onClick="ColdFusion.Layout.showAccordion('accordionSensitiveInformation','accordionSensitiveInformation')">

    <cfinput type="button" name="HideAccordion" value="Hide Sensitive Information"

        onClick="ColdFusion.Layout.hideAccordion('accordionSensitiveInformation','accordionSensitiveInformation')">

--->

    <cfinput type="button" name="ExpandAccordion" value="Expand Sensitive Information"

        onClick="ColdFusion.Layout.expandAccordion('accordionSensitiveInformation','accordionSensitiveInformation')">

    <cfinput type="button" name="CollapseAccordion" value="Collapse Sensitive Information"

        onClick="ColdFusion.Layout.collapseAccordion('accordionSensitiveInformation','accordionSensitiveInformation')">

</cfform>

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 08, 2014 Sep 08, 2014

Copy link to clipboard

Copied

Thanks for your reply. What I want is to set some Accordion cflayoutareas disable (not clickable) first. For example, there is a process which need 2 steps to finish. Customer can't expand step 2 before they need to finish all jobs on step 1. Thanks!!

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Sep 08, 2014 Sep 08, 2014

Copy link to clipboard

Copied

LATEST

That is what you get when you toggle between

ColdFusion.Layout.expandAccordion and ColdFusion.Layout.collapseAccordion

Try it and see.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines