castitas
6 Aug 2012, 9:02 AM
Is there a difference in speed/etc in using xtype versus Ext.widget()/Ext.create() in the items array? I think that xtype is the standard...
Ext.define('util.FutTimeGrid',{
extend: 'Ext.grid.Panel',
alias : 'widget.futtimegrid',
...
...
xtype: 'tabpanel',
items: [{
xtype: 'futtimegrid', //How is this different...
title: "Regular Time",
itemId: 'regtimegrid',
gridStore : myRsce.regTimeStore,
totalStore: myRsce.regTimeTotalStore,
employeeId: this.employeeId,
isEditable: this.isEditable
},
Ext.widget('futtimegrid',{ //from this?
title: "Overtime",
itemId: 'overtimegrid',
gridStore : myRsce.otStore,
totalStore: myRsce.otTotalStore,
employeeId: this.employeeId,
isEditable: this.isEditable
})
,
...
Ext.define('util.FutTimeGrid',{
extend: 'Ext.grid.Panel',
alias : 'widget.futtimegrid',
...
...
xtype: 'tabpanel',
items: [{
xtype: 'futtimegrid', //How is this different...
title: "Regular Time",
itemId: 'regtimegrid',
gridStore : myRsce.regTimeStore,
totalStore: myRsce.regTimeTotalStore,
employeeId: this.employeeId,
isEditable: this.isEditable
},
Ext.widget('futtimegrid',{ //from this?
title: "Overtime",
itemId: 'overtimegrid',
gridStore : myRsce.otStore,
totalStore: myRsce.otTotalStore,
employeeId: this.employeeId,
isEditable: this.isEditable
})
,
...