SOURCE CODE: Uize.Widgets.Bars.UsedAndRemaining.Html (view docs)

Uize.module ({
  name:'Uize.Widgets.Bars.UsedAndRemaining.Html',
  builder:function () {
    'use strict';

    return Uize.package ({
      process:function (i) {
        function _cssClass (_class) {return m.cssClass (_class)}
        function _resolveNonStringToPixel (_value) {return typeof _value == "string" ? _value : +_value + "px"}
        var
          m = this,
          i = arguments [0],
          _idPrefix = i.idPrefix,
          _fragment0 = '" class="',
          _fragment1 = '"></div>\r\n    <div id="',
          _fragment2 = '"></div>\r\n    <div class="'
        ;
        return (
          '<div id="' + _idPrefix + _fragment0 + i['mCssBindings_rootNodeClasses'] + '">\r\n  <div id="' + _idPrefix + '-track' + _fragment0 + _cssClass ('track') + '">\r\n    <div class="' + _cssClass ('trackBg') + _fragment1 + _idPrefix + '-full' + _fragment0 + _cssClass ('trackFull') + '" style="' + 'background-color:' + _resolveNonStringToPixel (i['_usedColor']) + ';' + _fragment1 + _idPrefix + '-empty' + _fragment0 + _cssClass ('trackEmpty') + _fragment2 + _cssClass ('trackLighting') + _fragment2 + _cssClass ('statusText') + '">\r\n      <div id="' + _idPrefix + '-usedText' + _fragment0 + _cssClass ('usedText') + '">' + i['displayedUsedText'] + '</div>\r\n      <div id="' + _idPrefix + '-remainingText' + _fragment0 + _cssClass ('remainingText') + '">' + i['displayedRemainingText'] + '</div>\r\n    </div>\r\n  </div>\r\n</div>\r\n\r\n'
        );

      }
    });
  }
});