How to select multiple sets of items in Sencha Touch 2?

I select one item called "detalleItemDescription" in Sencha Touch 2 as follows:

this.getDetalleItem().down('#detalleItemDescription').setData(record.data);

How to choose several?

this.getDetalleItem().down('#detalleItemDescription','#second','#third').setData(record.data);

Is it possible? how to do it?

Thank!!

+3
source share
1 answer

You can use Ext.ComponentQuery.querythat takes a comma separated list and returns a Composite collection that you can list.

Or you can use the request method directly on your object.

this.getDetalleItem().query('#detalleItemDescription','#second','#third').each(function(item) { item.setData(record.data) }) ;
+1
source

All Articles