PDA

View Full Version : Difference between Ext.getCmp() and Ext.Component.Query



silveralecs
18 Jul 2012, 12:48 AM
I would like to know what is the difference between:
Ext.getCmp( String id ) - which is a shorthand for Ext.ComponentManager.get( String id )
and
Ext.ComponentQuery.query( String id )

Thank you,
Alex

evant
18 Jul 2012, 12:53 AM
getCmp retrieves a component by a globally unique id.

query runs a query to find a component that matches a selector, similar to querySelectorAll.