How to override the logic for calculating the next expand/collapse child panel using **Accordion layou**t? I am interested in it due to the inability to hide from the user chat sequencer child panels without violating expand/collapse of visible panels.
MenuBoxPanel = Ext.create('Ext.panel.Panel', {
width: 300,
layout: {
type:'accordion',
multi: false
},
region: 'west',
items: [{
xtype: 'panel',
title: 'Panel 1'
}, {
xtype: 'panel',
title: 'Panel 2'
}, {
xtype: 'panel',
title: 'Panel 3'
}, {
xtype: 'panel',
title: 'Panel 4'
}]
});
var viewport = Ext.create('Ext.container.Viewport', {
layout: 'border',
minHeight: 420,
items: [MenuBoxPanel],
renderTo: Ext.getBody()
});
MenuBoxPanel.items.items[1].hide();