# inputEx-library

### inputEx 0.5.1

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

## Class inputEx.DSSelectField - extends inputEx.SelectField

Create a select field from a datasource

### Constructor

inputEx.DSSelectField `( options )`

Parameters:
  `options <Object>` Added options:
  - options: list of option elements configurations
  - datasource: the datasource
  - valueKey: value key
  - labelKey: label key

#### Properties inherited from inputEx.Field:

`options`

### Methods

#### onDatasourceFailure

`void onDatasourceFailure ( )`
Callback for request failure

#### onDatasourceSuccess

`void onDatasourceSuccess ( )`
Callback for request success

#### populateSelect

`void populateSelect ( )`
Insert the options

#### renderComponent

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

#### sendDataRequest

`void sendDataRequest ( )`
Send the datasource request

#### setOptions

`void setOptions ( options )`
Setup the additional options for selectfield

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`

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