1
0
mirror of https://tt-rss.org/git/tt-rss.git synced 2024-07-02 12:50:52 +02:00
ttrss/lib/dijit/form/DateTextBox.js.uncompressed.js
2013-03-18 10:26:26 +04:00

29 lines
942 B
JavaScript

define("dijit/form/DateTextBox", [
"dojo/_base/declare", // declare
"../Calendar",
"./_DateTimeTextBox"
], function(declare, Calendar, _DateTimeTextBox){
// module:
// dijit/form/DateTextBox
return declare("dijit.form.DateTextBox", _DateTimeTextBox, {
// summary:
// A validating, serializable, range-bound date text box with a drop down calendar
// example:
// | new DateTextBox({value: new Date(2009, 0, 20)})
// example:
// | <input data-dojo-type='dijit/form/DateTextBox' value='2009-01-20'>
baseClass: "dijitTextBox dijitComboBox dijitDateTextBox",
popupClass: Calendar,
_selector: "date",
// value: Date
// The value of this widget as a JavaScript Date object, with only year/month/day specified.
// If specified in markup, use the format specified in `stamp.fromISOString`.
// set("value", ...) accepts either a Date object or a string.
value: new Date("") // value.toString()="NaN"
});
});