# inputEx-library

### inputEx 0.5.1

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

## Class inputEx.MultiSelectField - extends inputEx.SelectField

Known Subclasses:
  inputEx.MultiSelectFieldCustom

Create a multi select field

### Constructor

inputEx.MultiSelectField `( ]) )`

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

#### getValue

`Any getValue ( )`
Return the value

Returns: `Any`
  an array of selected values

#### initEvents

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

#### onAddNewItem

`void onAddNewItem ( )`
Add an item to the list when the select changed

#### onItemRemoved

`void onItemRemoved ( )`
Re-enable the option element when an item is removed by the user

#### renderComponent

`void renderComponent ( )`
Build the DDList

#### setValue

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

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`

#### Methods inherited from inputEx.SelectField:

`appendChoiceNode, disable, enable, getValue, initEvents, renderComponent, setOptions, setValue`

#### Events inherited from inputEx.Field:

`updatedEvt,`

Copyright © 2010 Eric Abouaf All rights reserved.