Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

query list of dijit checkboxes inside a DIV

I need to find all dijit.form.CheckBox widgets inside a DIV and enable/disable them all. I am not able to form appropriate query for it.

I tried dojo.query("[dojoType~=dijit.form.CheckBox]") but it gives me an empty list.

What is the appropriate query for it? Can DOJO query return a WidgetSet or does it always returns DOM ids? Is there some different way for querying dijit widgets?

like image 740
Shailesh Kumar Avatar asked Dec 11 '09 08:12

Shailesh Kumar


1 Answers

Try dijit.findWidgets:

Search subtree under root, putting found widgets in outAry. Doesn't search for nested widgets (ie, widgets inside other widgets)

like image 83
Maine Avatar answered Sep 22 '22 01:09

Maine