Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get Ext JS version

Tags:

extjs

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?

like image 430
sri20198 Avatar asked Jul 07 '11 07:07

sri20198


3 Answers

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.

like image 132
JamesHalsall Avatar answered Oct 19 '22 08:10

JamesHalsall


Since ExtJS 4.1.1:

Ext.getVersion().version;
like image 30
Geo Avatar answered Oct 19 '22 07:10

Geo


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
               });
like image 23
Subdigger Avatar answered Oct 19 '22 06:10

Subdigger