SOURCE CODE: Uize.Widgets.ColorInfo.Html

VIEW REFERENCE

Uize.module ({
  name:'Uize.Widgets.ColorInfo.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="',
          _fragment1 = '" style="',
          _fragment2 = 'background-color:' + i['valueAsHexRgb'] + ';',
          _fragment3 = _cssClass ('subheader')
        ;
        return (
          '
\r\n
\r\n
' + i['valueAsHexRgb'] + '
\r\n
\r\n
\r\n
As a background
\r\n
\r\n white text \r\n black text\r\n
\r\n
As a text color
\r\n
\r\n
\r\n
\r\n
on white on black
\r\n
\r\n
\r\n
\r\n
\r\n\r\n' ); } }); } });