PDA

View Full Version : Get all components of a range with specific xtype



extjser12
20 Mar 2012, 2:38 AM
Hello together

Is there a method in Ext JS where I can get all components of a range with a specific xtype?

For example:
Return all checkboxes of a specific fieldcontainer.


Thanks for your answer!

Kind regards
extjser12

börn
20 Mar 2012, 4:53 AM
what is a range? what is a specific field container?

Ext.ComponentQuery.query('#yourspecificfieldcontainer yourXtype'); ?

e.g.

Ext.ComponentQuery.query('#fieldset-1243 checkbox')

gives all components of xtype checkbox of the fieldset with the given id.

extjser12
20 Mar 2012, 1:25 PM
Hi

Thank you very much for your help. This is exactly what I was searching for.

Kind regards
extjser12