code: function () {
          var self = this, targetCtrl, forName, forId = self.settings.forId;
          var text = self.settings.html ? self.settings.html : self.encode(self.state.get('text'));
  
          if (!forId && (forName = self.settings.forName)) {
            targetCtrl = self.getRoot().find('#' + forName)[0];
  
            if (targetCtrl) {
              forId = targetCtrl._id;
            }
          }
  
          if (forId) {
            return (
              '<label id="' + self._id + '" class="' + self.classes + '"' + (forId ? ' for="' + forId + '"' : '') + '>' +
              text +
              '</label>'
            );
          }
  
          return (
            '<span id="' + self._id + '" class="' + self.classes + '">' +
            text +
            '</span>'
          );
        }
docs: Renders the control as a HTML string.
  
  @method renderHtml
  @return {String} HTML representing the control.