The date is accessed via the "value" property and is a JavaScript "Date" object with no time
component of the date set. If the date is removed from the entry box, null is returned.
See also:
• Dojo Docs – dijit/form/DateTextBox – 1.9
• Working with Dates in Dojo – 1.9
dijit/form/TimeTextBox
This widget shows a time box from which a value can be chosen. The "value" property will contain
a JavaScript date object from which the date portion should be ignored … only the time is relevant.
dijit/form/Validation Text Box
This widget is a text input area that also provides validation of its content.
Options include:
• promptMessage – The message text to be displayed beside the input field when input is
being entered.
• invalidMessage – The message shown in the validation fails. Reasons that a validation
may fail include:
◦ No data entered for a required field
◦ Data entered does not match the regular expression validation
• lowercase – Ensures that all characters entered are transformed into lowercase.
• propercase – Ensures capitalization of first letter and lower case letters from then on.
• required – Flags the field as being required and hence data must be entered into it.
• trim – Remove any leading or trailing whitespace from the entered data.
• regExp – A regular expression applied to the entered data. If the data does not match that
regular expression, the invalidMessage is shown.
• maxLength – Constrains the entered data to be no more than this number of characters.
dojo.require("dijit.form.ValidationTextBox");
Page 154
Kommentare zu diesen Handbüchern