inputEx Documentation Back to homepage

inputEx Documentation > inputEx.Group 1.0.0

Class inputEx.Group - extends inputEx.Field

Known Subclasses:
inputEx.Form
Handle a group of fields

Constructor

inputEx.Group ( options )
Parameters:
options <Object>  - with optionsLabel,fields: Array of input fields : { label: 'Enter the value:' , type: 'text' or fieldClass: inputEx.Field, optional: true/false, inputParams: {inputparams object} }

Methods

close

close()
Close the group (recursively calls "close" on each field, does NOT hide the group ) Call this function before hidding the group to close any field popup

disable

disable()
Disable all fields in the group

enable

enable()
Enable all fields in the group

getEl

getEl()
Return the group wrapper DIV element

getValue

getValue()
Return an object with all the values of the fields

initEvents

initEvents()
Init the events for the group

onClickOptionsLabel

onClickOptionsLabel()
Handle the click on the "Options" label

render

render()
Render the group

renderField

renderField(fieldOptions)
Instanciate one field given its parameters, type or fieldClass
Parameters:
    fieldOptions

renderFields

renderFields(parentEl)
Render all the fields. We use the parentEl so that inputEx.Form can append them to the FORM tag
Parameters:
    parentEl

setOptions

setOptions()
undocumented

setValue

setValue(oValues)
Set the values of each field from a key/value hash object
Parameters:
    oValues

validate

<Boolean> validate()
Validate each field
Returns:
    <Boolean> true if all fields validate and required fields are not empty




Copyright (c) 2008 Eric Abouaf. All rights reserved.
Generated by JsDoc Toolkit 1.4.1 on Wed, 07 May 2008 10:26:29 GMT.