One time or another, everyone will need to ask this question: How I find the ExtJs/Sencha version used in an application?
In ExtJS, Ext.version defines the version used, however, in ExtJS 4.x, Ext.version has been replaced by Ext.getVersion(). But we don’t assume that Ext.version=3.x and Ext.getVersion()=4.x, so the below code detects the version of Sencha used:
1 | if (Ext.version != undefined) { |
2 | alert(Ext.version); |
3 | } else { |
4 | alert(Ext.getVersion()); |
5 | } |
Best regards,