Results 1 to 3 of 3

Thread: Accordion Multi not working

  1. #1

    Default Accordion Multi not working

    Hi,
    I have created Accordion Panel.
    I set multi : true
    But this is not working , at a time only 1 panel is expanded. I am using extjs 4.0

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    9,410
    Answers
    716

    Default

    See if the following works for you:

    Code:
    Ext.create('Ext.panel.Panel', {
        title: 'Accordion Layout',
        width: 300,
        height: 300,
        defaults: {
            // applied to each contained panel
            bodyStyle: 'padding:15px'
        },
        layout: {
            // layout-specific configs go here
            type: 'accordion',
            titleCollapse: false,
            animate: true,
            activeOnTop: true,
            multi: true
        },
        items: [{
            title: 'Panel 1',
            html: 'Panel content!'
        },{
            title: 'Panel 2',
            html: 'Panel content!'
        },{
            title: 'Panel 3',
            html: 'Panel content!'
        }],
        renderTo: Ext.getBody()
    });
    Regards,
    Scott.

  3. #3
    Sencha User
    Join Date
    Apr 2013
    Posts
    1

    Default Awesome!

    +1, works excellent! Just what I needed.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •