getNameByAlias removed in Ext JS 5

53 views Asked by At

Currently a Ext JS 4 uses getNameByAlias of https://docs.sencha.com/extjs/4.2.6/#!/api/Ext.ClassManager in its code to map database dynamic alias configurations to class matching to it.

Application needs to upgrade Ext JS. In Ext JS 5 method was removed. Having an extjs alias, is there a dynamic way by code to determine the matching implementation class?

Ext.define('classNameIneed', extends: ..., alias: 'aliasIhave', ....

2

There are 2 answers

0
João On

Not pretty but should do the trick.

Ext.getclassName(Ext.createByAlias('aliasIhave')}

0
scebotari66 On

You can still use Ext.ClassManager.getNameByAlias in ExtJs5. Its definition got moved to Ext.Inventory.