inputEx Documentation Back to homepage

### inputEx Documentation > inputEx.TreeField 0.2.2

## Static Class inputEx.TreeField - extends inputEx.ListField

Meta field to create trees

### Constructor

inputEx.TreeField `( options )`

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

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

#### subFields `- Object`

List of all the subField instances

### Methods

#### getValue

`<Any> getValue()`
Get the value
Returns:

`<Any>` The tree object

#### renderComponent

`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

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

`obj <Any>` - The tree object

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

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

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

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

`validate, setOptions, removeElement, onArrowUp, onArrowDown, addElement, onDelete, initEvents, onAddButton,`

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.