Changes between Initial Version and Version 1 of Ticket #6009, comment 19
- Timestamp:
- Jul 27, 2016, 11:22:09 AM (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #6009, comment 19
initial v1 1 1 The 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. 2 2 3 Nonetheless, I think it's worth it to at least support the `required` flag along with a `validate()` method, so you can at least wrap `Form` widget around the checkboxes, and have the form's `validate()` method include them invalidation. That would at least put them on equal footing with plain HTML form validation, and not make it worse.3 Nonetheless, 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.