Skip to content

Commit

Permalink
Adding note about validateCallback to the validation readme
Browse files Browse the repository at this point in the history
  • Loading branch information
LearningStation committed Jan 23, 2011
1 parent 909fa94 commit 0e8497a
Showing 1 changed file with 30 additions and 2 deletions.
32 changes: 30 additions & 2 deletions VALIDATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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.