dojox/mobile/DatePicker

Authors:Yoshiroh Kamiyama
Developers:Yoshiroh Kamiyama
since:V1.8

Introduction

dojox/mobile/DatePicker is a wrapper widget around dojox/mobile/SpinWheelDatePicker or dojox/mobile/ValuePickerDatePicker. It should be used with the automatic theme loader, dojox/mobile/deviceTheme. If the current theme is ‘android’ or ‘holodark’, it returns ValuePickerDatePicker. For the other themes, it returns SpinWheelDatePicker.

Examples

Declarative example

require([
    "dojox/mobile/parser",
    "dojox/mobile/DatePicker"
]);
<div id="picker1" data-dojo-type="dojox/mobile/DatePicker"></div>

Programmatic example

require([
    "dojo/_base/window",
    "dojo/ready",
    "dojox/mobile/DatePicker",
    "dojox/mobile/parser"
], function(win, ready, registry, DatePicker){
    ready(function(){
      var widget = new DatePicker({id:"picker1"});
      win.body().appendChild(widget.domNode);
      widget.startup();
    });
});

See also dojox/mobile/SpinWheelDatePicker or dojox/mobile/ValuePickerDatePicker.

Error in the documentation? Can’t find what you are looking for? Let us know!