If you have more than one alias for a class you can only query by the first one, for example.
This explains why Ext.ComponentQuery.query('grid') doesn't work and I must do a Ext.ComponentQuery.query('gridpanel') to get the grid. Ext.grid.Panel has 2 aliases: ['widget.gridpanel', 'widget.grid'] and gridpanel is the first.
This is strange because the docs for CQ states that "Components can be retrieved by using their xtype" and grid is the xtype not gridpanel.
Sencha Developer "evant" opened Bug Id EXTJSIV-1804 and wanted to start a discuions if dots in alias names are allowed
a) Whether CQ will support the "convenience" aliases
b) Whether we'll support periods in xtypes
Sencha should update this ticket, what the internal review has produced
Sorry, a bit sarcasm here, but Bug its open since 6. May and since 13.May the "internal review" started.
I want to know if dot-alias querieing is coming or should I get used to use non-dotted aliases and remove all //FIXME from my code
Last edited by Nickname; 29 Jun 2011 at 11:03 AM.
Reason: added bug id and format
Fantastic--not only does this work, but I might prefer it since the query criteria is explicit (i.e., it's obvious that the search will be based on the xtype attribute of DOM elements). Thanks for sharing.