]> git.wh0rd.org - tt-rss.git/blob - lib/dijit/form/DateTextBox.js
upgrade Dojo to 1.6.1
[tt-rss.git] / lib / dijit / form / DateTextBox.js
1 /*
2 Copyright (c) 2004-2011, The Dojo Foundation All Rights Reserved.
3 Available via Academic Free License >= 2.1 OR the modified BSD license.
4 see: http://dojotoolkit.org/license for details
5 */
6
7
8 if(!dojo._hasResource["dijit.form.DateTextBox"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
9 dojo._hasResource["dijit.form.DateTextBox"] = true;
10 dojo.provide("dijit.form.DateTextBox");
11 dojo.require("dijit.Calendar");
12 dojo.require("dijit.form._DateTimeTextBox");
13
14
15 dojo.declare(
16 "dijit.form.DateTextBox",
17 dijit.form._DateTimeTextBox,
18 {
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 dojotype='dijit.form.DateTextBox' value='2009-01-20'>
27
28 baseClass: "dijitTextBox dijitComboBox dijitDateTextBox",
29 popupClass: "dijit.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 `dojo.date.stamp.fromISOString`.
35 // set("value", ...) accepts either a Date object or a string.
36 value: new Date("") // value.toString()="NaN"
37 }
38 );
39
40 }