cacert-testmgr/external/ZendFramework-1.9.5/externals/dojo/dijit/form/DateTextBox.js
Markus Warg 8398c9048d initially import ZendFramework-1.9.5 into repository
code was modified slightly, so the code differs from the original downloadable 1.9.5 version
2010-03-31 10:12:32 +02:00

31 lines
880 B
JavaScript

dojo.provide("dijit.form.DateTextBox");
dojo.require("dijit._Calendar");
dojo.require("dijit.form._DateTimeTextBox");
dojo.declare(
"dijit.form.DateTextBox",
dijit.form._DateTimeTextBox,
{
// summary:
// A validating, serializable, range-bound date text box with a drop down calendar
baseClass: "dijitTextBox dijitDateTextBox",
popupClass: "dijit._Calendar",
_selector: "date",
// value: Date
// The value of this widget as a JavaScript Date object, with only year/month/day specified.
//
// Example:
// | new dijit.form.DateTextBox({value: new Date(2009,1,20)})
//
// When passed to the parser in markup, must be specified according to locale-independent
// `dojo.date.stamp.fromISOString` format.
//
// Example:
// | <input dojotype='dijit.form.DateTextBox' value='2009-01-20'>
value: new Date("") // value.toString()="NaN"
}
);