# inputEx-library

### inputEx 0.5.1

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

## Class inputEx.SelectField - extends inputEx.Field

Known Subclasses:
  inputEx.MultiSelectField inputEx.DSSelectField

Create a select field

### Constructor

inputEx.SelectField `( ]) )`

Parameters:
  `]) <Object} options Added options:
  - choices: contains the list of choices configs ([{value:'usa'}, {value:'fr', label:'France'
  >`

#### Properties inherited from inputEx.Field:

`options`

### Methods

#### appendChoiceNode

`void appendChoiceNode ( node , position )`
Attach an node to the

Parameters:
  `node <HTMLElement>` The node to attach to the
  `position <Int>` The position of the choice in choicesList (may not be the "real" position in DOM)

#### disable

`void disable ( )`
Disable the field

#### enable

`void enable ( )`
Enable the field

#### getValue

`Any getValue ( )`
Return the value

Returns: `Any`
  the selected value

#### initEvents

`void initEvents ( )`
Register the "change" event

#### renderComponent

`void renderComponent ( )`
Build a select tag with options

#### setOptions

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

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

#### setValue

`void setValue ( value , [sendUpdatedEvt] )`
Set the value

Parameters:
  `value <String>` The value to set
  `[sendUpdatedEvt] <boolean>` (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event)

#### 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.