[Dojo-interest] Highlighting required fields
jkeller at softrek.com
Thu Apr 11 08:10:17 EDT 2013
Again, if all your input widgets are under a dijit/form/Form you could
probably do something like
1. on page load use Form#_getDescendantFormWidgets to get each input under
2. add input.watch('required') to each result from
3. in the watch handler you'll probably want to add/remove (based on whether
it became required or optional) a css class to the top node of the input or
something that gives you a gentler required styling than the "error"
This of course assumes that all input widgets are always on the page at
initialization time and not added/removed dynamically.
View this message in context: http://dojo-toolkit.33424.n3.nabble.com/Highlighting-required-fields-tp3995753p3995764.html
Sent from the Dojo Toolkit mailing list archive at Nabble.com.
More information about the Dojo-interest