WARNING: This is WORK IN PROGRESS documentation for the NEXT version of Dojo.
dojox.mobile.SpinWheelDatePicker
| Authors: |
Yoshiroh Kamiyama |
| Developers: | Yoshiroh Kamiyama |
| since: | V1.7 |
SpinWheelDatePicker is a date picker widget. It is a subclass of dojox.mobile.SpinWheel. It has the year, month, and day slots.
| Parameter |
Type |
Default |
Description |
| yearPattern |
String |
"yyyy" |
A pattern to be used to format year. |
| monthPattern |
String |
"MMM" |
A pattern to be used to format month. |
| dayPattern |
String |
"d" |
A pattern to be used to format day. |
require([
"dojox/mobile/parser",
"dojox/mobile/SpinWheelDatePicker"
]);
<div id="spin1" data-dojo-type="dojox.mobile.SpinWheelDatePicker"></div>
require([
"dojo/_base/window",
"dojo/ready",
"dojox/mobile/SpinWheelDatePicker",
"dojox/mobile/parser"
], function(win, ready, registry, SpinWheelDatePicker){
ready(function(){
var widget = new SpinWheelDatePicker({id:"spin1"});
win.body().appendChild(widget.domNode);
widget.startup();
});
});
registry.byId("spin1").set("value", "2012-10-06"); // Oct 6, 2012
registry.byId("spin1").set("values", [2012, 10, 6]); // Oct 6, 2012