inputEx Documentation Back to homepage

inputEx Documentation > inputEx.CombineField 0.2.2

Static Class inputEx.CombineField - extends inputEx.Field

A meta field to put N fields on the same line, separated by separators
Known Subclasses:
inputEx.DateSplitField inputEx.DateTimeField inputEx.BirthdateField inputEx.TimeField

Constructor

inputEx.CombineField ( options )
Parameters:
options <Object>  - Added options:
  • separators: array of string inserted
  • fields: list of fields in inputEx-typed-JSON

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

appendSeparator

appendSeparator(i)
Parameters:
    i

clear

clear([sendUpdatedEvt])
Clear all subfields
Parameters:
    sendUpdatedEvt <boolean> optional - (optional) Wether this clear should fire the updatedEvt or not (default is true, pass false to NOT send the event)

getValue

<Array> getValue()
Specific getValue
Returns:
    <Array> An array of values [value1, value2, ...]

isEmpty

isEmpty()
Useful for getState to return correct state (required, empty, etc...)

renderComponent

renderComponent()
Render the two subfields

renderField

renderField(fieldOptions)
Instanciate one field given its parameters, type or fieldClass
Parameters:
    fieldOptions <Object>  - The field properties as required bu inputEx.buildField

setClassFromState

setClassFromState()
Call setClassFromState on all children

setOptions

setOptions(options)
Set the default values of the options
Parameters:
    options <Object>  - Options object (inputEx inputParams) as passed to the constructor

setValue

setValue(values[,sendUpdatedEvt])
Set the value
Parameters:
    values <Array>  - [value1, value2, ...]
    sendUpdatedEvt <boolean> optional - (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event)

validate

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




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