Knockout Parsley
Parsley validation for Knockout JS.
License: MIT
Usage
// Init the pluginkoparsley; var viewModel = // Add a simple rule to the observable value1: ko // Add rule with custom message value2: ko // Add rule with condition // The condition must be a function returning a boolean value. // If the returned value is false, the validation will not apply. value3: ko ; // Apply Knockout bindingsko;
Rules
You can use the following Parsley rules:
- required
- minlength
- maxlength
- length
- min
- max
- pattern
- range
- type
Learn more about the rules on the Parsley Documentation Site