I have a problem and don't know if this is a bug or I misunderstood something. I wanted to search for a component with a specific class. Example:
Ext.define('Test', {
xtype: 'Test',
cls: ['cat', 'dog']
});
I wanted to find this component I created in a Ext.Container
with this.down('Test[cls~=cat]')
(I used ~=
because the component has multiple classes). But I got undefined
or null
(don't know anymore) as a result.
With Ext.ComponentQuery.query('Test[cls~=cat]')
I actually could find it.
Why is that? I thought down()
is the same as Ext.ComponentQuery.query
with the difference that it's search scope is not global.
I am using the current version of Sencha Touch.