]>
git.wh0rd.org - tt-rss.git/blob - lib/dijit/form/DateTextBox.js
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
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");
16 "dijit.form.DateTextBox",
17 dijit
.form
._DateTimeTextBox
,
20 // A validating, serializable, range-bound date text box with a drop down calendar
23 // | new dijit.form.DateTextBox({value: new Date(2009, 0, 20)})
26 // | <input dojotype='dijit.form.DateTextBox' value='2009-01-20'>
28 baseClass
: "dijitTextBox dijitComboBox dijitDateTextBox",
29 popupClass
: "dijit.Calendar",
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"