Sha256: add3ce47ecaa468e1618c873aadd8b53f7a0f5b9b0c6346e63243b3f499fcaa2

Contents?: true

Size: 961 Bytes

Versions: 7

Compression:

Stored size: 961 Bytes

Contents

/*** = Description
  ** HProgressBar is a control unit used to convey the progress of a task,
  ** such as a download or file transfer. In other words, it is a component
  ** indicating a percentage of a total task has completed.
  **
  ** Use the maxValue to define the point of progress at the end and use value
  ** to define the point of progress.
  **
***/
var//RSence.Controls
HProgressBar = HControl.extend({
  componentName: "progressbar",

/** The amount of pixels the theme insets the width of the progress bar **/
  themeWidthInset: 2,

/** Sets the width of the progress bar when the value changes. **/
  refreshValue: function(){
    if( this.drawn && this.markupElemIds.value ){
      var _progressWidth = Math.round(100 * this.value);
      if(_progressWidth<0){
        _progressWidth = 0;
      }
      this.setStyleOfPart('value','width',_progressWidth+'%');
    }
  },
  onIdle: function(){
    this.base();
    this.refreshValue();
  }
});

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rsence-pre-3.0.0.16 client/js/controls/progress/progressbar/progressbar.js
rsence-pre-3.0.0.15 client/js/controls/progress/progressbar/progressbar.js
rsence-pre-3.0.0.14 client/js/controls/progress/progressbar/progressbar.js
rsence-pre-3.0.0.12 client/js/controls/progress/progressbar/progressbar.js
rsence-pre-3.0.0.11 client/js/controls/progress/progressbar/progressbar.js
rsence-pre-3.0.0.10 client/js/controls/progress/progressbar/progressbar.js
rsence-pre-3.0.0.9 client/js/controls/progress/progressbar/progressbar.js