Last change
on this file since 483 was
483,
checked in by hendrikvanantwerpen, 11 years ago
|
Added Dojo 1.9.3 release.
|
File size:
1.1 KB
|
Line | |
---|
1 | define([ |
---|
2 | "dojo/_base/declare", // declare |
---|
3 | "../Calendar", |
---|
4 | "./_DateTimeTextBox" |
---|
5 | ], function(declare, Calendar, _DateTimeTextBox){ |
---|
6 | |
---|
7 | // module: |
---|
8 | // dijit/form/DateTextBox |
---|
9 | |
---|
10 | return declare("dijit.form.DateTextBox", _DateTimeTextBox, { |
---|
11 | // summary: |
---|
12 | // A validating, serializable, range-bound date text box with a drop down calendar |
---|
13 | // example: |
---|
14 | // | new DateTextBox({value: new Date(2009, 0, 20)}) |
---|
15 | // example: |
---|
16 | // | <input data-dojo-type='dijit/form/DateTextBox' value='2009-01-20'> |
---|
17 | |
---|
18 | baseClass: "dijitTextBox dijitComboBox dijitDateTextBox", |
---|
19 | popupClass: Calendar, |
---|
20 | _selector: "date", |
---|
21 | |
---|
22 | // Prevent scrollbar on Calendar dropdown. On iPad it often gets a scrollbar unnecessarily because Viewport |
---|
23 | // thinks the keyboard is showing. Even if the keyboard is showing, it disappears when the calendar gets focus. |
---|
24 | maxHeight: Infinity, |
---|
25 | |
---|
26 | // value: Date |
---|
27 | // The value of this widget as a JavaScript Date object, with only year/month/day specified. |
---|
28 | // If specified in markup, use the format specified in `stamp.fromISOString`. |
---|
29 | // set("value", ...) accepts either a Date object or a string. |
---|
30 | value: new Date("") // value.toString()="NaN" |
---|
31 | }); |
---|
32 | }); |
---|
Note: See
TracBrowser
for help on using the repository browser.