SOURCE CODE: Uize.Templates.CollectionItem
VIEW REFERENCE

/*
  This is an automatically generated module, compiled from the JavaScript template file:
    Uize.Templates.CollectionItem.js.jst
*/

Uize.module ({
  name:'Uize.Templates.CollectionItem',
  builder:function () {
    var _package = function () {};

    /*** Public Static Methods ***/
      _package.process = function (input) {
        var output = [];
        /* Module Meta Data
          type: Template
          importance: 2
          codeCompleteness: 100
          testCompleteness: 0
          docCompleteness: 100
        */
        /*?
          Introduction
            The =Uize.Templates.CollectionItem= module generates HTML that can be used for instances of the =Uize.Widget.CollectionItem= class.

            *DEVELOPERS:* `Chris van Rensburg`

            The =Uize.Templates.CollectionItem= module is a JavaScript Template Module that is automatically generated by a build script from a companion =Uize.Templates.CollectionItem.js.jst= JavaScript Template (.jst) file.

          Public Static Methods
            Uize.Templates.CollectionItem.process
              Returns a string, being the generated HTML that is to be used by an instance of the =Uize.Widget.CollectionItem= class (or subclass).

              SYNTAX
              ..............................................................
              widgetHtmlSTR = Uize.Templates.CollectionItem.process (inputOBJ);
              ..............................................................

              The value of the =inputOBJ= parameter should be an object of the form...

              ........................
              {
                idPrefix: idPrefixSTR
              }
              ........................

              idPrefix
                A string, specifying the value of the =idPrefix= state property of the widget instance that uses this module to generate its HTML.

          Public Static Properties
            Uize.Templates.CollectionItem.input
              An object, describing the allowed properties of the =inputOBJ= parameter of the =Uize.Templates.CollectionItem.process= static method.
        */
        output.push ('<div id="',input .idPrefix,'" class="collectionItem">\r\n  <div class="collectionItemActions">\r\n    <a id="',input .idPrefix,'_remove" href="javascript://" title="Click to remove this item">delete</a>\r\n  </div>\r\n  <div id="',input .idPrefix,'-previewShell" class="collectionItemPreview">\r\n    <a href="javascript://" class="collectionItemPreviewLink">\r\n      <img id="',input .idPrefix,'-preview" src="',input. previewUrl,'" class="collectionItemPreviewImage"/>\r\n    </a>\r\n  </div>\r\n  <div class="collectionItemInfo">\r\n    <div id="',input .idPrefix,'_select" class="collectionItemSelect" title="click to select / unselect">\r\n      <div class="collectionItemSelectCheck"></div>\r\n    </div>\r\n    <div id="',input .idPrefix,'-title" class="collectionItemInfoTitle"></div>\r\n  </div>\r\n</div>\r\n\r\n');
        return output.join ('');
      };

    /*** Public Static Properties ***/
      _package.input = {
        idPrefix:'string'
      };

    return _package;
  }
});