Properties Methods Events Config Options Direct Link
ContainerLayout
  FitLayout
    AccordionLayout

Class CQ.Ext.layout.AccordionLayout

Package:CQ.Ext.layout
Class:AccordionLayout
Extends:CQ.Ext.layout.FitLayout
Clientlib:cq.widgets

This is a layout that manages multiple Panels in an expandable accordion style such that only one Panel can be expanded at any given time. Each Panel has built-in support for expanding and collapsing.

Note: Only CQ.Ext.Panels and all subclasses of CQ.Ext.Panel may be used in an accordion layout Container.

This class is intended to be extended or created via the layout configuration property. See CQ.Ext.Container.layout for additional details.

Example usage:

var accordion = new CQ.Ext.Panel({
    title: 'Accordion Layout',
    layout:'accordion',
    defaults: {
        // applied to each contained panel
        bodyStyle: 'padding:15px'
    },
    layoutConfig: {
        // layout-specific configs go here
        titleCollapse: false,
        animate: true,
        activeOnTop: true
    },
    items: [{
        title: 'Panel 1',
        html: '<p>Panel content!</p>'
    },{
        title: 'Panel 2',
        html: '<p>Panel content!</p>'
    },{
        title: 'Panel 3',
        html: '<p>Panel content!</p>'
    }]
});

Config Options

Config Options Defined By
  renderHidden : Boolean
True to hide each contained item on render (defaults to false).
ContainerLayout

Public Properties

Property Defined By

Public Methods

Method Defined By

Public Events

This class has no public events.