# inputEx-library

### inputEx 0.5.1

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

## Class inputEx.TreeField - extends inputEx.ListField

Meta field to create trees

### Constructor

inputEx.TreeField `( options )`

Parameters:
  `options <Object>` inputEx.Field options object

#### Properties inherited from inputEx.ListField:

`subFields`

#### Properties inherited from inputEx.Field:

`options`

### Methods

#### getValue

`Any getValue ( )`
Get the value

Returns: `Any`
  The tree object

#### renderComponent

`void renderComponent ( )`
Render the addButton and childContainer

#### renderSubField

`inputEx.Field renderSubField ( value )`
Adds a new line to the List Field

Parameters:
  `value <Any>` Value of the subelement

Returns: `inputEx.Field`
  instance of the created field (inputEx.Field or derivative)

#### setValue

`void setValue ( obj , [sendUpdatedEvt] )`
Set the value

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

#### Methods inherited from inputEx.ListField:

`addElement, getValue, initEvents, onAddButton, onArrowDown, onArrowUp, onDelete, removeElement, renderComponent, renderSubField, resetAllNames, setOptions, setValue, validate`

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