dojox/form/TimeSpinner.js

  • Provides:

    • dojox.form.TimeSpinner
  • Requires:

    • dijit.form._Spinner in common in project dijit
    • dojo.date in common in project dojo
    • dojo.date.locale in common in project dojo
    • dojo.date.stamp in common in project dojo
  • dojox.form.TimeSpinner

    • type
      Function
    • chains:
      • dijit.form._Spinner: (prototype)
      • dijit.form._Spinner: (call)
    • summary
      Time Spinner
    • description
      This widget is the same as a normal NumberSpinner, but for the time component of a date object instead
  • dojox.form.TimeSpinner.required

    • summary
  • dojox.form.TimeSpinner.adjust

    • type
      Function
    • parameters:
      • val: (typeof Object)
      • delta: (typeof Number)
    • source: [view]
        return dojo.date.add(val, "minute", delta)
    • summary
  • dojox.form.TimeSpinner.isValid

    • type
      Function
    • source: [view]
       isValid: function(){return true;
    • summary
  • dojox.form.TimeSpinner.smallDelta

    • summary
  • dojox.form.TimeSpinner.largeDelta

    • summary
  • dojox.form.TimeSpinner.timeoutChangeRate

    • summary
  • dojox.form.TimeSpinner.parse

    • type
      Function
    • parameters:
      • time: (typeof )
      • locale: (typeof )
    • source: [view]
        return dojo.date.locale.parse(time, {selector:"time", formatLength:"short"});
    • summary
  • dojox.form.TimeSpinner.format

    • type
      Function
    • parameters:
      • time: (typeof )
      • locale: (typeof )
    • source: [view]
        if (dojo.isString(time)) { return time; }
        return dojo.date.locale.format(time, {selector:"time", formatLength:"short"});
    • summary
  • dojox.form.TimeSpinner.serialize

    • summary
  • dojox.form.TimeSpinner.value

    • summary
  • dojox.form.TimeSpinner._onKeyPress

    • type
      Function
    • parameters:
      • e: (typeof )
    • source: [view]
      if((e.charOrCode == dojo.keys.HOME || e.charOrCode == dojo.keys.END) && !(e.ctrlKey || e.altKey || e.metaKey)
      && typeof this.get('value') != 'undefined' /* gibberish, so HOME and END are default editing keys*/){
      var value = this.constraints[(e.charOrCode == dojo.keys.HOME ? "min" : "max")];
      if(value){
      this._setValueAttr(value,true);
      }
      // eat home or end key whether we change the value or not
      dojo.stopEvent(e);
      }
    • summary
  • dojox.form

    • type
      Object
    • summary
  • dojox

    • type
      Object
    • summary