# inputEx-library

### inputEx 0.5.1

inputEx-library > inputEx > inputEx.MenuField
Search:
Filters Show Private Show Protected Show Deprecated

## Class inputEx.MenuField - extends inputEx.Field

Create a menu field

### Constructor

inputEx.MenuField `( options )`

Parameters:
  `options <Object>` Added options:
  - typeInvite : text to display when no selection made
  - menuItems : contains descriptions of menu items
  - menuTrigger : event to trigger menu show
  - menuPosition : array of corners positions (syntax : ['menu popup corner','invite div corner'])
  - menuConfig (optional) : object used as a config for the YUI Menu generated by MenuField

#### Properties inherited from inputEx.Field:

`options`

### Methods

#### renderComponent

`void renderComponent ( )`
Build a menu

#### setOptions

`void setOptions ( options )`
Set the default values of the options

Parameters:
  `options <Object>` Options object as passed to the constructor

#### Methods inherited from inputEx.Field:

`clear, close, destroy, disable, displayMessage, enable, fireUpdatedEvt, focus, getEl, getParentField, getState, getStateString, getValue, hide, initEvents, isDisabled, isEmpty, onBlur, onChange, onFocus, render, renderComponent, setClassFromState, setFieldName, setOptions, setParentField, setValue, show, validate`

#### Events inherited from inputEx.Field:

`updatedEvt,`

Copyright © 2010 Eric Abouaf All rights reserved.