bacon.validation
in the works. pls ignore for now.
Validation.Fields.validatedTextField(inputField, options)
Options (all optional):
-
validationController
the associated validationController -
validators
list of validator functions -
validateWhen
a boolean Property that enables/disables validation for this field -
disableWhen
a boolean Property for disabling this field -
hideWhen
a boolean Property for hiding this field -
converter
a converter function -
ajaxValidationUrl
URL for ajax validation. For example: /api/username/valid/{val}. Expects the stringtrue
orfalse
as response. -
initValue
init value