Component XTypes
//Explicit creation of contained Components: var panel = new Ext.Panel({ ... items: [ new Ext.Button({ text: 'OK' }) ] }; //Implicit creation using xtype: var panel = new Ext.Panel({ ... items: [{ xtype: 'button', text: 'OK' }]
//Explicit creation of contained Components: var panel = new Ext.Panel({ ... items: [ new Ext.Button({ text: 'OK' }) ] }; //Implicit creation using xtype: var panel = new Ext.Panel({ ... items: [{ xtype: 'button', text: 'OK' }]