source: Dev/branches/rest-dojo-ui/client/dijit/form/DateTextBox.js @ 256

Last change on this file since 256 was 256, checked in by hendrikvanantwerpen, 13 years ago

Reworked project structure based on REST interaction and Dojo library. As
soon as this is stable, the old jQueryUI branch can be removed (it's
kept for reference).

File size: 1.1 KB
Line 
1define([
2        "dojo/_base/declare", // declare
3        "../Calendar",
4        "./_DateTimeTextBox"
5], function(declare, Calendar, _DateTimeTextBox){
6
7/*=====
8        var Calendar = dijit.Calendar;
9        var _DateTimeTextBox = dijit.form._DateTimeTextBox;
10=====*/
11
12        // module:
13        //              dijit/form/DateTextBox
14        // summary:
15        //              A validating, serializable, range-bound date text box with a drop down calendar
16
17
18        return declare("dijit.form.DateTextBox", _DateTimeTextBox, {
19                // summary:
20                //              A validating, serializable, range-bound date text box with a drop down calendar
21                //
22                //              Example:
23                // |    new dijit.form.DateTextBox({value: new Date(2009, 0, 20)})
24                //
25                //              Example:
26                // |    <input data-dojo-type='dijit.form.DateTextBox' value='2009-01-20'>
27
28                baseClass: "dijitTextBox dijitComboBox dijitDateTextBox",
29                popupClass: Calendar,
30                _selector: "date",
31
32                // value: Date
33                //              The value of this widget as a JavaScript Date object, with only year/month/day specified.
34                //              If specified in markup, use the format specified in `stamp.fromISOString`.
35                //              set("value", ...) accepts either a Date object or a string.
36                value: new Date("")     // value.toString()="NaN"
37        });
38});
Note: See TracBrowser for help on using the repository browser.