PDA

View Full Version : Recursive Query to objects items array



bforbhavin
13 Nov 2013, 6:15 AM
I have set up fields on my screen in following structure. I want to query for particular field to panel object. Instead of going into loop and navigating each and every container/panel, is there any function that can search through items array and return me the field item. I tried Ext.Component.Query but i think it doesn't navigate through the items array. Can you suggest if Ext has support to navigate through the object's items array for particular array item?

Panel
- multiple containers
- multiple panels insde each container
- multiple containers inside each panel
- multiple fields inside each container

scottmartin
14 Nov 2013, 8:27 PM
Have look at the Query again:
http://docs.sencha.com/extjs/4.2.2/#!/api/Ext.ComponentQuery

You can also use type of properties to find an item. Perhaps you can create a small example of your setup on our fiddle so we can have a look:

https://fiddle.sencha.com/#home