# inputEx-library

### inputEx 0.5.1

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

## 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 options definition

#### Properties inherited from inputEx.Field:

`options`

### Methods

#### getValue

`Object getValue ( )`
Return the config for a entry in an Group

Returns: `Object`
  Type object configuration

#### initEvents

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

#### onChangeGroupOptions

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

#### onTogglePropertiesPanel

`void onTogglePropertiesPanel ( )`
Toggle the property panel

#### rebuildGroupOptions

`void rebuildGroupOptions ( )`
Regenerate the property form

#### renderComponent

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

#### setValue

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

Parameters:
  `value <Object>` Type object configuration
  `[sendUpdatedEvt] <boolean>` (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event)

#### updateFieldValue

`void updateFieldValue ( )`
Update the fieldValue

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

#### Events inherited from inputEx.Field:

`updatedEvt,`

Copyright © 2010 Eric Abouaf All rights reserved.