inputEx Documentation Back to homepage

### inputEx Documentation > inputEx.TypeField 0.2.2

## Static Class inputEx.TypeField - extends inputEx.Field

TypeField is a field to create fields. The user can create any value he wants by switching fields.

### Constructor

inputEx.TypeField `( options )`

Parameters:
  `options <Object>` - Standard inputEx inputParams definition

### Properties

#### static groupOptions `- Object`

group Options for each field

#### options `- Object`

Configuration object to set the options for this class and the parent classes. See constructor details for options added by this class.

### Methods

#### getValue

`<Object> getValue()`
Return the config for a entry in an Group
Returns:

`<Object>` Type object configuration

#### initEvents

`initEvents()`
Adds 2 event listeners: - on the button to toggel the propertiesPanel

#### onChangeGroupOptions

`onChangeGroupOptions()`
Update the fieldValue with the changed properties

#### onTogglePropertiesPanel

`onTogglePropertiesPanel()`
Toggle the property panel

#### rebuildGroupOptions

`rebuildGroupOptions()`
Regenerate the property form

#### renderComponent

`renderComponent()`
Render the TypeField: create a button with a property panel that contains the field options

#### setValue

`setValue(value[,sendUpdatedEvt])`
Set the value of the label, typeProperties and group
Parameters:

`value <Object>` - Type object configuration

`sendUpdatedEvt <boolean>` optional - (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event)

#### updateFieldValue

`updateFieldValue()`
Update the fieldValue

#### Methods inherited from class inputEx.Field:

`focus, getEl, validate, fireUpdatedEvt, show, close, onBlur, onFocus, getStateString, setClassFromState, disable, onChange, render, updatedEvt, getState, setOptions, hide, displayMessage, destroy, isEmpty, enable, clear,`

Copyright (c) 2007-2009 Eric Abouaf. All rights reserved.
Generated by JsDoc Toolkit 2.0.0 on Wed, 04 Mar 2009 15:41:32 GMT using neyricjslibs-template.