public/javascripts/inputex/js/fields/MenuField.js
function() {
      
      // Div to display the invite, then the selected text
      this.el = inputEx.cn('div', {className:'inputEx-Result'}, null, this.options.typeInvite);
      YAHOO.util.Dom.addClass(this.el, (this.options.menuPosition[1] == "tr") ? "inputEx-RightArrow" : "inputEx-DownArrow");
      this.fieldContainer.appendChild(this.el);
      
      // Keep selected value in a hidden field
	   this.hiddenEl = inputEx.cn('input', {type: 'hidden', name: this.options.name || '', value: this.options.value || ''});
	   this.fieldContainer.appendChild(this.hiddenEl);
	   
	   // Init Menu
	   this.initMenu();
   }
function() {
      
      // Div to display the invite, then the selected text
      this.el = inputEx.cn('div', {className:'inputEx-Result'}, null, this.options.typeInvite);
      YAHOO.util.Dom.addClass(this.el, (this.options.menuPosition[1] == "tr") ? "inputEx-RightArrow" : "inputEx-DownArrow");
      this.fieldContainer.appendChild(this.el);
      
      // Keep selected value in a hidden field
	   this.hiddenEl = inputEx.cn('input', {type: 'hidden', name: this.options.name || '', value: this.options.value || ''});
	   this.fieldContainer.appendChild(this.hiddenEl);
	   
	   // Init Menu
	   this.initMenu();
   }
function ( ) { // Div to display the invite, then the selected text this . el = inputEx . cn ( 'div' , { className : 'inputEx-Result' } , null , this . options . typeInvite ) ; YAHOO . util . Dom . addClass ( this . el , ( this . options . menuPosition [ 1 ] == "tr" ) ? "inputEx-RightArrow" : "inputEx-DownArrow" ) ; this . fieldContainer . appendChild ( this . el ) ; // Keep selected value in a hidden field this . hiddenEl = inputEx . cn ( 'input' , { type : 'hidden' , name : this . options . name || '' , value : this . options . value || '' } ) ; this . fieldContainer . appendChild ( this . hiddenEl ) ; // Init Menu this . initMenu ( ) ; }
Build a menu
Build a menu