A mixin for date picker widget.
See the dojox/mobile/_DatePickerMixin reference documentation for more information.
A string representing the date value. The setter of this property first converts the value argument by calling the fromISOString method of the dojo/date/stamp module, then sets the values of the picker according to the resulting Date object. If the string cannot be parsed by fromISOString, the method does nothing. Example: set("value", "2012-1-20"); // January 20, 2012 The getter returns the string formatted as described in the dojo/date/stamp module.
Disables the end days of the month to match the specified number of days of the month. Returns true if the day value is changed.
Returns a Date object for the current values.
Gets the current date as a String formatted according to a subset of the ISO-8601 standard.
A string formatted as described in the dojo/date/stamp module.
Sets the current date as an String formatted according to a subset of the ISO-8601 standard.
This method first converts the value argument by calling the fromISOString method of the dojo/date/stamp module, then sets the values of the picker according to the resulting Date object. If the string cannot be parsed by fromISOString, the method does nothing.
Parameter | Type | Description |
---|---|---|
value | String | A string formatted as described in the dojo/date/stamp module. |
set("value", "2012-1-20"); // January 20, 2012
Sets the current date as an array of values.
This method takes an array that consists of three values, year, month, and day. If the values are integer, they are formatted to locale-specific strings before setting them to the slots. Month starts from 1 to 12 (Ex. 1 - Jan, 2 - Feb, etc.) If the values are NOT integer, they are directly passed to the setter of the slots without formatting.
Parameter | Type | Description |
---|---|---|
values | Array |
set("values", [2012, 1, 20]); // January 20, 2012
An internal handler called when the day value is changed.
set("values", [2012, 1, 20]); // January 20, 2012
An internal handler called when the month value is changed.
set("values", [2012, 1, 20]); // January 20, 2012
An internal handler called when the year value is changed.
set("values", [2012, 1, 20]); // January 20, 2012
A handler called when the day value is changed.
set("values", [2012, 1, 20]); // January 20, 2012
A handler called when the month value is changed.
set("values", [2012, 1, 20]); // January 20, 2012
A handler called when the year value is changed.
set("values", [2012, 1, 20]); // January 20, 2012