View Full Version : Find and Close all Ext.Panel.panel

25 Jun 2013, 9:58 PM
Hi Guys,

Is there an easy way to hide all my open Panels.

I want something like a "home" button.

Since I have a lot of tables and can have a lot of open grid panels I would like to close / hide them with a click.

How would I approach this?

25 Jun 2013, 11:04 PM
ComponentQuery might help you achieve what you want.


This will return an array of all grids. you can use xtype or some class to find components. Take a look at the documentation (http://docs.sencha.com/extjs/4.2.0/#!/api/Ext.ComponentQuery).

25 Jun 2013, 11:47 PM
Thanks a million.

I was almost on the right track but this works so much better.