PDA

View Full Version : Create a Ext.Component by Xtype???



shaluniska
26 Feb 2010, 7:34 AM
Hi Guys,

my code:



Ext.ns('Application');

Application.View = Ext.extend(Ext.Panel, {
layout:'fit',
.....
,initComponent:function() {
Ext.apply(this, {
Application.View.superclass.initComponent.apply(this, arguments);
}
}
});

Ext.reg('appView', Application.View);



How can i create an Ext.Component by xtype??

new Ext.Component({xtype:'appView'}); does not work...

please help!

Animal
26 Feb 2010, 8:09 AM
http://www.extjs.com/deploy/dev/docs/?class=Ext.ComponentMgr