I have taken over a PHP + Ext JS project. Unfortunately, there is no documentation. How do I find out the Ext JS version that is being used?
In jQuery, we get the version by running $().jquery;
. Anything like this in Ext JS?
Two easy ways to do this. First is from a web browser's console..
In ExtJS 3.x:
Ext.version;
In ExtJS 4.0:
Ext.getVersion('extjs');
In >= ExtJS 4.1
Ext.getVersion().version;
Or you can look in the ext-all-debug.js and check the version number at the top of the script. In all versions dating back to 1.0 they include the version number at the top of the ext-all-debug script, it might be called something else but just have a look around your application hierarchy.
Since ExtJS 4.1.1:
Ext.getVersion().version;
http://docs.sencha.com/ext-js/4-0/#/api/Ext.Version-method-getVersion
var ver = Ext.getVersion('core');
if (ver.isLessThan('4.0.1')) {
Ext.Msg.show({
title: 'Err',
msg: 'Old version',
buttons: Ext.Msg.OK,
icon: Ext.Msg.ERROR
});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With