PDA

View Full Version : Is there any way to check xtype alias Exists



syedaq
7 Aug 2012, 11:11 PM
hi,

can any one plz tell

Is there any way to check xtype alias Exists

thanks

vietits
8 Aug 2012, 1:04 AM
You could use Ext.ClassManager.getNameByAlias(). Example:


function checkXTypeExist(xtype){
return Ext.ClassManager.getNameByAlias('widget.' + xtype) != '';
}