inputEx-library

inputEx  0.7.1

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

Class inputEx.SelectTwiceField - extends inputEx.Field

Create a select field

Constructor

inputEx.SelectTwiceField ( , )
Parameters:
, <Object} options Added options:
  • choices: contains the list of nested choices ([{ value: "", choices: [""] }, { value: "BMW Z Series", choices: ["Z1", "Z3", "Z4", "Z8"] > ...])
  • valueSeperator:

Properties inherited from inputEx.Field:

Methods

getState

void getState ( )
HACK because empty state value is this.options.valueSeparator

getValue

Any getValue ( )
Return the value
Returns: Any
the selected value

renderComponent

void renderComponent ( )
Build two select fields

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) Whether 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.