Changes between Version 1 and Version 2 of Ticket #6009, comment 19


Ignore:
Timestamp:
Jul 27, 2016, 11:23:27 AM (4 years ago)
Author:
gaxweb
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #6009, comment 19

    v1 v2  
    11The only problem here is showing a visual indication. Maybe the label should be part of the widget, so you have something to work with? How often do you use a checkbox without a label? Exactly. But wrap it around the checkbox, don't use an extra one. Makes layout much easier and less error prone.
    22
     3HTML5 forms show a tooltip, pointing at the checkbox btw.
     4
    35Nonetheless, I think it's worth it to at least support the `required` flag along with a `validate()` method, so you can at least wrap a `Form` widget around the checkboxes, so the form's `validate()` method will automatically (the form calls each widget's `validate()` method already: https://github.com/dojo/dijit/blob/master/form/_FormMixin.js#L72) consider them during validation. That would at least put them on equal footing with plain HTML form validation, and not make it worse.