O'Reilly logo

Ext JS 4 First Look by Loiane Groner

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Ext.ComponentQuery

Before we look into the creation or migration of our application, we need to learn how to use the Ext.ComponentQuery class.

This class is very useful when we need to control the views in the Controller class, and we are going to learn how to use it properly.

This class provides searching of Components within Ext.ComponentManager (globally) or within a specific Ext.container.Container in the document, with syntax similar to a CSS selector.

Note

For more information about the CSS selector syntax, please go to http://www.w3schools.com/cssref/css_selectors.asp

For the next examples, we are going to use the following code:

var panel1 = Ext.create('Ext.panel.Panel', { title: 'Panel 1', html: 'Body 1', id: 'panel1Id', columnWidth: .25, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required