SOURCE CODE: Uize.Widgets.ImagePort.Html (view docs)

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

    return Uize.package ({
      process:function (i) {
        function _resolveNonStringToPixel (_value) {return typeof _value == "string" ? _value : +_value + "px"}
        var
          m = this,
          i = arguments [0],
          _idPrefix = i.idPrefix
        ;
        return (
          '<div id="' + _idPrefix + '" class="' + i['mCssBindings_rootNodeClasses'] + '" style="' + 'width:' + _resolveNonStringToPixel (i['width']) + ';' + 'height:' + _resolveNonStringToPixel (i['height']) + ';' + '"><img id="' + _idPrefix + '-image' + '"></img></div>\r\n'
        );

      }
    });
  }
});