Although you're not required to place Dijit form elements in a dijit.form.Form, doing so gets you some nice methods and extension points to use.
|
dijit.form.Form
Adds conveniences to regular HTML form.
|
||
|
Methods
|
||
| getValues | generate JSON structure from form values get widget values | |
| isValid | Return true if every widget's isValid method returns true. | |
| setValues | fill in form values from a JSON structure generate map from name --> [list of widgets with that name] | |
| submit | programatically submit form | |
|
Extension Points
|
||
| execute | User defined function to do stuff when the user hits the submit button | |