Sencha Forum
>
Ext JS Community Forums 4.x
>
Ext: Q&A
> Is there any way to check xtype alias Exists
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) != '';
}
Powered by vBulletin® Version 4.1.5 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.