PDA

View Full Version : Getting Window by itemId through WindowManager



BStramke
23 Feb 2012, 10:57 PM
Hi!

As i was not able to get a window through its itemId i had to use something like this:


Ext.WindowManager.getBy(
function(cmp){
if(cmp.itemId=='window_1')
return true;
else
return false;
}
);

Is there any other, better way to do this? Is this way raising any other issues I should take care of?

friend
24 Feb 2012, 4:59 AM
var w = Ext.ComponentQuery.query('#window_1')[0];

BStramke
26 Feb 2012, 10:21 PM
Thanks!

It could have been that easy... ;)