22. Ext.select
var rows = Ext.select('div.row'); //Matches all divs with class row (a CompositeElement )
rows.setWidth(100); // All elements become 100 width
Ext.select('div.row').setWidth(100);
Ext.select('div.row, span.title'); //Matches all divs with class row and all spans with class title
Ext.get('myEl').select('div.row'); //myEl is root of search
یا
Ext.select('div.row', true, 'myEl');// This is equivalent to the previous line
Ext.select('div.row[title=bar]:first‘)
http://armandar.com
23. Ext.ComponentQuery
Ext.ComponentQuery.query('button'); // returns all the components with the xtype button
Ext.ComponentQuery.query('#foo'); //returns a component with the ID of foo
Ext.ComponentQuery.query("button[title='my button']");;
//یا
parent.query('textfield[title=my button]');
Ext.ComponentQuery.query('formpanel numberfield'); // Gets only the numberfields under a for
parent.child('button[itemId=save]');
http://armandar.com
• nextNode
• up
• down
• previousSibling