日期:2014-05-16 浏览次数:20376 次
TestJsonStore = Ext.extend(Ext.data.JsonStore, { constructor: function(cfg) { cfg = cfg || {}; TestJsonStore.superclass.constructor.call(this, Ext.apply({ storeId: 'TestJsonStore', fields: [ { name: 'field' } ] }, cfg)); } });
TestViewUi = Ext.extend(Ext.Viewport, { layout: 'fit', initComponent: function() { Ext.applyIf(this, { items: [ { xtype: 'panel', ref: 'testPanel', height: 518, width: 846, layout: 'border', items: [ ] } ] }); TestViewUi.superclass.initComponent.call(this); } });
TestView = Ext.extend(TestViewUi, { initComponent: function() { TestView.superclass.initComponent.call(this); //TODO add event } });