Permalink
Browse files

Adding note about validateCallback to the validation readme

  • Loading branch information...
LearningStation committed Jan 23, 2011
1 parent 909fa94 commit 0e8497a7806ed8f87adbdc4ea44e9971d40b1ce9
Showing with 30 additions and 2 deletions.
  1. +30 −2 VALIDATION.md
View
@@ -32,7 +32,6 @@ as a parameter when you call uniform().
## Uni-Form Settings
* prevent_submit (false)
Set this to true to prevent the form from submitting if there are outstanding
errors in the form
@@ -59,4 +58,33 @@ as a parameter when you call uniform().
List of html elements that will be treated with Uni-Form highlighting and
validation (if enabled)
* default_value_color ("#AFAFAF")
HEX color used to display the default data in the background of empty text inputs
HEX color used to display the default data in the background of empty text inputs
## Validators
* required
* validateMinLength
* validateMin
* validateMaxLength
* validateMax
* validateSameAs
* validateEmail
* validateUrl
* validateNumber
* validateInteger
* validateAlpha
* validateAlphaNum
* validatePhrase
* validatePhone
* validateDate
* validateCallback
Validators what require a parameter, such as validateMinLength, take that parameter
as a class name following the validator in the format of _val-{value}_.
## validateCallback
The validateCallback is a special validator. See the demo/callback.html file for example
use. It allows you to define a custom callback to an input without having to add a new
validator type to the library.

0 comments on commit 0e8497a

Please sign in to comment.