dojox/mobile/TimePicker

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

Introduction

dojox/mobile/TimePicker is a wrapper widget around dojox/mobile/SpinWheelTimePicker or dojox/mobile/ValuePickerTimePicker. If you use dojox/mobile/deviceTheme and the current theme is 'android', it returns ValuePickerTimePicker. For the other themes, it returns SpinWheelTimePicker.

Examples

Declarative example

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

Programmatic example

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

See also dojox/mobile/SpinWheelTimePicker or dojox/mobile/ValuePickerTimePicker.