35 lines
930 B
JavaScript
35 lines
930 B
JavaScript
define("dojox/mobile/SpinWheelTimePicker", [
|
|
"dojo/_base/declare",
|
|
"dojo/dom-class",
|
|
"./_TimePickerMixin",
|
|
"./SpinWheel",
|
|
"./SpinWheelSlot"
|
|
], function(declare, domClass, TimePickerMixin, SpinWheel, SpinWheelSlot){
|
|
|
|
// module:
|
|
// dojox/mobile/SpinWheelTimePicker
|
|
|
|
return declare("dojox.mobile.SpinWheelTimePicker", [SpinWheel, TimePickerMixin], {
|
|
// summary:
|
|
// A SpinWheel-based time picker widget.
|
|
// description:
|
|
// SpinWheelTimePicker is a time picker widget. It is a subclass of
|
|
// dojox/mobile/SpinWheel. It has two slots: hour and minute.
|
|
|
|
slotClasses: [
|
|
SpinWheelSlot,
|
|
SpinWheelSlot
|
|
],
|
|
|
|
slotProps: [
|
|
{labelFrom:0, labelTo:23, style:{width:"50px", textAlign:"right"}},
|
|
{labelFrom:0, labelTo:59, zeroPad:2, style:{width:"40px", textAlign:"right"}}
|
|
],
|
|
|
|
buildRendering: function(){
|
|
this.inherited(arguments);
|
|
domClass.add(this.domNode, "mblSpinWheelTimePicker");
|
|
}
|
|
});
|
|
});
|