PDA

View Full Version : Global Group



Sneha004
7 Mar 2012, 9:59 PM
Hi,

Can anyone suggest me how to use global group ?
If I 'll create one variable like globalgroup=glgrp ,

Then How to use this global group in .js file?
thanks.....

mitchellsimoens
8 Mar 2012, 4:36 PM
You want an application wide variable? Create a singleton class...


Ext.define('MyClass', {
singleton : true,

foo : 'bar'
});

console.log(MyClass.foo);