Form Widgets
Submitted by bill on Sun, 07/08/2007 - 15:15.
All the form widgets support the standard form element attributes such as disabled, tabIndex, id, name, value, in addition to enable()/disable(), and getValue()/setValue(). Of course, changing any parameter value must be done via a method call rather than by just changing the variable value.
All form widgets can be added to a webpage inside a <form> tag, and their value is submitted when the form is submitted. Form reset doesn't work (at least for 0.9).
Some form widgets have the idea of the displayed value (in localized format), and the submitted value (in a standard format). For example, a DateTextBox in America will display 5/30/2007, but you create the widget like this:
<input dojoType=dijit.DateTextBox value=2007-5-30>and also when you submit the form it will send 2007-5-30.
- Printer-friendly version
- Login or register to post comments
- Subscribe post
