SOURCE CODE: Uize.Widgets.Button.Toggle.OnOff.Html (view docs)

Uize.module ({
  name:'Uize.Widgets.Button.Toggle.OnOff.Html',
  builder:function () {
    'use strict';

    return Uize.package ({
      process:function (i) {
        function _cssClass (_class) {return m.cssClass (_class)}
        var
          m = this,
          i = arguments [0],
          _idPrefix = i.idPrefix,
          _fragment0 = '" class="'
        ;
        return (
          '<a id="' + _idPrefix + _fragment0 + i['mCssBindings_rootNodeClasses'] + '">\r\n  <span id="' + _idPrefix + '-text' + _fragment0 + _cssClass ('text') + '">' + i['text'] + '</span>\r\n  <span class="' + _cssClass ('onIndicator') + '"></span>\r\n</a>\r\n\r\n'
        );

      }
    });
  }
});