Class CAF.Input
Object
|
+--CAF.Input
- class
CAF.Input
Input utilities.
Defined in core.js
Method Summary |
<static> void
|
addValidator(id, validator, key, nowait)
Registers a validator.
|
<static> void
|
synchronizeValues(ids)
Synchronizes the values of the specified controls
(ie when one control's value changes, updates the other controls' values).
|
<static> Object
|
validate(form, setfocus)
Validates all the input controls in the specified form,
returning an aggregate error message.
|
checkValueChangesInterval
<static> Object checkValueChangesInterval
check for value changes every x ms
CAF.Input
CAF.Input()
addValidator
<static> void addValidator(id, validator, key, nowait)
Parameters:
id
- Client-side control id or element.
validator
- Validator object that has a validate(id, value) method, where the first arg to validate() is the control id, and the second arg is the control value.
synchronizeValues
<static> void synchronizeValues(ids)
Synchronizes the values of the specified controls
(ie when one control's value changes, updates the other controls' values).
Parameters:
ids
- Array of client-side control ids.
validate
<static> Object validate(form, setfocus)
Validates all the input controls in the specified form,
returning an aggregate error message.
Parameters:
form
- Form element or id.
setfocus
- (optional) True to set focus to the first invalid control.
Returns:
Aggregate error detail (un-escaped html) if invalid, or empty string if valid.
Documentation generated by
JSDoc on Thu Sep 12 11:17:47 2013