The UI Enhancement in ColdFusion 9 includes many new AJAX control tags and enhancement to the existing UI controls in ColdFusion 8. The AJAX controls in ColdFusion leverages the ExtJS 3.0 Library for to create Rich UI Controls. The new addition is Accordion navigation to CFLayout tag. The accordion is very useful for compressing many elements in a compacts space in our web sites. Using the below code we can create accordion navigation in ColdFusion very easily.
Each Accordion navigation generated using CFLayout tag will have a + or - button on the title area for to expand and collapse the accordion. By default the layout area will expand and collapse by clicking anywhere in the accordion title bar. This can be prevented using the attribute titleCollapse which makes the layout area will be expandable and collapsible only by clicking the + or - button in the title bar.
I applied it here temporarily.
Can the accordion have some animation?
Seems like it has a bug where only the first item is populated. The title collapse doesn't work either.
Is it possible to have this feature available in CF8? I mean if I use some kind of extensions or library? But where can I find them to achieve the same feature in ColdFusion 8. Thanks
@Prim Yes you can implement Accordion navigation in CF 8 with some external JS libraries.
- Adobe Spry http://labs.adobe.com/technologies/spry/articles/a...
- jQuery UI http://docs.jquery.com/UI/Accordion
Can the + / - icons be replaced or deleted?
Also, can i have different colors for each accordion?
CFML/Web/Salesforce/Agile Enthusiast, Husband & Dad, an avid learner & android fan. Creator of GetCFMLJobs.com who works as a Tech Consultant in Toronto, Canada.