inputEx-library

inputEx  0.7.1

inputEx-library > inputEx > inputEx.SelectField
Search:
 
Filters

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:

Methods

appendChoiceNode

void appendChoiceNode ( node , position )
Attach an

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)

Events inherited from inputEx.Field:


Copyright © 2011 Eric Abouaf All rights reserved.