public/javascripts/inputex/js/fields/TreeField.js
function() {
	      
	   // Add element button
	   this.addButton = inputEx.cn('img', {src: inputEx.spacerUrl, className: 'inputEx-ListField-addButton'});
	   Dom.setStyle(this.addButton, 'float', 'left');
	   this.fieldContainer.appendChild(this.addButton);      
	      
	   // Instanciate the new subField
	   this.subField = inputEx(this.options.elementType,this);
	   
	   var subFieldEl = this.subField.getEl();
	   Dom.setStyle(subFieldEl, 'margin-left', '4px');
	   Dom.setStyle(subFieldEl, 'float', 'left');
	   this.fieldContainer.appendChild( subFieldEl );
	      
	   // Line breaker
	   this.fieldContainer.appendChild( inputEx.cn('div', null, {clear: "both"}, this.options.listLabel) );
	      
	      
	   // Div element to contain the children
	   this.childContainer = inputEx.cn('div', {className: 'inputEx-ListField-childContainer'});
	   this.fieldContainer.appendChild(this.childContainer);      
	}
function() {
	      
	   // Add element button
	   this.addButton = inputEx.cn('img', {src: inputEx.spacerUrl, className: 'inputEx-ListField-addButton'});
	   Dom.setStyle(this.addButton, 'float', 'left');
	   this.fieldContainer.appendChild(this.addButton);      
	      
	   // Instanciate the new subField
	   this.subField = inputEx(this.options.elementType,this);
	   
	   var subFieldEl = this.subField.getEl();
	   Dom.setStyle(subFieldEl, 'margin-left', '4px');
	   Dom.setStyle(subFieldEl, 'float', 'left');
	   this.fieldContainer.appendChild( subFieldEl );
	      
	   // Line breaker
	   this.fieldContainer.appendChild( inputEx.cn('div', null, {clear: "both"}, this.options.listLabel) );
	      
	      
	   // Div element to contain the children
	   this.childContainer = inputEx.cn('div', {className: 'inputEx-ListField-childContainer'});
	   this.fieldContainer.appendChild(this.childContainer);      
	}
function ( ) { // Add element button this . addButton = inputEx . cn ( 'img' , { src : inputEx . spacerUrl , className : 'inputEx-ListField-addButton' } ) ; Dom . setStyle ( this . addButton , 'float' , 'left' ) ; this . fieldContainer . appendChild ( this . addButton ) ; // Instanciate the new subField this . subField = inputEx ( this . options . elementType , this ) ; var subFieldEl = this . subField . getEl ( ) ; Dom . setStyle ( subFieldEl , 'margin-left' , '4px' ) ; Dom . setStyle ( subFieldEl , 'float' , 'left' ) ; this . fieldContainer . appendChild ( subFieldEl ) ; // Line breaker this . fieldContainer . appendChild ( inputEx . cn ( 'div' , null , { clear : "both" } , this . options . listLabel ) ) ; // Div element to contain the children this . childContainer = inputEx . cn ( 'div' , { className : 'inputEx-ListField-childContainer' } ) ; this . fieldContainer . appendChild ( this . childContainer ) ; }
Render the addButton and childContainer
Render the addButton and childContainer