Sha256: fc89b3f946666a7835725a3bcc6fbd01f3e3195923663b9242766cc5a534ad9f
Contents?: true
Size: 1.4 KB
Versions: 1
Compression:
Stored size: 1.4 KB
Contents
define("dojox/mobile/SpinWheelDatePicker", [ "dojo/_base/array", "dojo/_base/declare", "dojo/dom-class", "./_DatePickerMixin", "./SpinWheel", "./SpinWheelSlot" ], function(array, declare, domClass, DatePickerMixin, SpinWheel, SpinWheelSlot){ // module: // dojox/mobile/SpinWheelDatePicker return declare("dojox.mobile.SpinWheelDatePicker", [SpinWheel, DatePickerMixin], { // summary: // A SpinWheel-based date picker widget. // description: // SpinWheelDatePicker is a date picker widget. It is a subclass of // dojox/mobile/SpinWheel. It has three slots: year, month, and day. slotClasses: [ SpinWheelSlot, SpinWheelSlot, SpinWheelSlot ], slotProps: [ {labelFrom:1970, labelTo:2038}, {}, {} ], buildRendering: function(){ this.initSlots(); this.inherited(arguments); domClass.add(this.domNode, "mblSpinWheelDatePicker"); this._conn = [ this.connect(this.slots[0], "onFlickAnimationEnd", "onYearSet"), this.connect(this.slots[1], "onFlickAnimationEnd", "onMonthSet"), this.connect(this.slots[2], "onFlickAnimationEnd", "onDaySet") ]; }, disableValues: function(/*Number*/nDays){ // summary: // Makes the specified items grayed out. array.forEach(this.slots[2].panelNodes, function(panel){ for(var i = 27; i < 31; i++){ domClass.toggle(panel.childNodes[i], "mblSpinWheelSlotLabelGray", i >= nDays); } }); } }); });
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dojox-rails-0.11.0 | vendor/assets/javascripts/mobile/SpinWheelDatePicker.js.uncompressed.js |