PHP Code:
testPanel = function() {
testPanel.superclass.constructor.call(this, {
region:'west',
id:'west-panel',
split:true,
width: 250,
minSize: 175,
maxSize: 250,
triggerAction: 'all',
collapsible: true,
collapseMode:'mini',
margins:'0 0 5 5',
layout:'accordion',
title:'West',
layoutConfig:{
animate:true
},
items: [{
contentEl: 'west',
title:'Navigation',
border:false,
iconCls:'nav'
},{
title:'Settings',
html:'<p>Some settings in here.</p>',
border:false,
iconCls:'settings'
}
],
tbar: ['ComboBox: ', ' ',
new Ext.form.ComboBox({
listClass:'x-combo-list-small',
width:180,
value: 'Test1',
id:'app-select',
mode: 'local',
triggerAction: 'all',
store: new Ext.data.SimpleStore({
fields: ['text'],
expandData: true,
data : [
['Test1'],
['Test2'],
['Test3'],
['Test4']
]
}),
displayField: 'text'
})]
});
};
Ext.extend(testPanel, Ext.Panel, {
});
var test = new testPanel();
/*######################################################################*/
test.topToolbar[2].on('select', function(objeto, registro, indice) {
alert('xxxxxxxxxxxxx');
test.items.clear();
test.doLayout()
});
/*######################################################################*/