Namespace: .validatorRepo

vivalid. .validatorRepo

The interface to use when using data attributes to define Inputs And Groups.
Source:

Methods

(static) addBuilder(name, fn)

Adds validator builder. Use to create custom validation rules.
Parameters:
Name Type Description
name string validator name.
fn function a validation builder see *** for more details.
Source:
Example
vivalid.validatorRepo.addBuilder('required',fn);