PDA

View Full Version : EXTJS4 not have EXT.reg() method.



Himansu
26 Jul 2012, 9:03 PM
I am migrating extjs3 code to extjs4.I found that extjs3 have ext.reg() method but it is not available in extjs4. how can we resolve this problem. Please help us, Thanks in advance.

mitchellsimoens
30 Jul 2012, 7:59 AM
This is all handled within Ext.define now. Ext.reg has been replaced by the alias property:


Ext.define('MyClassName', {
extend : 'Ext.Component',
alias : 'widget.myclass'
});

text is red is the xtype you would normally put into Ext.reg