public/javascripts/WireIt/build/wireit-inputex-editor-grouping.js
function(parentEl) {
      
      var innerSpan;
      
      if (this.options.type === "link" || this.options.type === "submit-link") {
         
         this.el = inputEx.cn('a', {className: this.options.className, id:this.options.id, href:"#"});
         Dom.addClass(this.el,this.options.type === "link" ? "inputEx-Button-Link" : "inputEx-Button-Submit-Link");
         
         innerSpan = inputEx.cn('span', null, null, this.options.value);
         
         this.el.appendChild(innerSpan);
         
      // default type is "submit" input
      } else {
         
         this.el = inputEx.cn('input', {type: "submit", value: this.options.value, className: this.options.className, id:this.options.id});
         Dom.addClass(this.el,"inputEx-Button-Submit");
      }
      
      parentEl.appendChild(this.el);
      
      if (this.options.disabled) {
         this.disable();
      }
      
      this.initEvents();
      
      return this.el;
   }
function(parentEl) {
      
      var innerSpan;
      
      if (this.options.type === "link" || this.options.type === "submit-link") {
         
         this.el = inputEx.cn('a', {className: this.options.className, id:this.options.id, href:"#"});
         Dom.addClass(this.el,this.options.type === "link" ? "inputEx-Button-Link" : "inputEx-Button-Submit-Link");
         
         innerSpan = inputEx.cn('span', null, null, this.options.value);
         
         this.el.appendChild(innerSpan);
         
      // default type is "submit" input
      } else {
         
         this.el = inputEx.cn('input', {type: "submit", value: this.options.value, className: this.options.className, id:this.options.id});
         Dom.addClass(this.el,"inputEx-Button-Submit");
      }
      
      parentEl.appendChild(this.el);
      
      if (this.options.disabled) {
         this.disable();
      }
      
      this.initEvents();
      
      return this.el;
   }
function ( parentEl ) { var innerSpan ; if ( this . options . type === "link" || this . options . type === "submit-link" ) { this . el = inputEx . cn ( 'a' , { className : this . options . className , id : this . options . id , href : "#" } ) ; Dom . addClass ( this . el , this . options . type === "link" ? "inputEx-Button-Link" : "inputEx-Button-Submit-Link" ) ; innerSpan = inputEx . cn ( 'span' , null , null , this . options . value ) ; this . el . appendChild ( innerSpan ) ; // default type is "submit" input } else { this . el = inputEx . cn ( 'input' , { type : "submit" , value : this . options . value , className : this . options . className , id : this . options . id } ) ; Dom . addClass ( this . el , "inputEx-Button-Submit" ) ; } parentEl . appendChild ( this . el ) ; if ( this . options . disabled ) { this . disable ( ) ; } this . initEvents ( ) ; return this . el ; }
render the button into the parent Element
@param {DOMElement} parentEl The DOM element where the button should be rendered
@return {DOMElement} The created button
render the button into the parent Element