validateMultipleInputs

Validates an array of configs which are for multiple inputs

validateMultipleInputs
Parameters
configs (array)
customOptions (object) object containing extra user-defined criteria or other customizeable options
Returns
boolean: true if all the input pass all the criteria or false if at least one input fails one criteria

validateSingleInput

Validates a single input using the configuration object passed

validateSingleInput
Parameters
config (object)
customOptions (object) object containing extra user-defined criteria or other customizeable options
Returns
boolean: true if the input passes all the criteria or false if it fails at least one

setupValidators

Setups all the validations in the given config array to be run if the proper event happens in the browser

setupValidators
Parameters
configs (array)
customOptions (object) object containing extra user-defined criteria or other customizeable options

CustomValidationService

Class that serves to hold a user's custom options so that they not need to re-send them for every call *

new CustomValidationService(customOptions: object)
Parameters
customOptions (object) object containing extra user-defined criteria or other customizeable options *
Instance Members
setupValidators(configs)
validateSingleInput(config)
validateMultipleInputs(configs)

applyCriteria

Validates a single input after a single criteria

applyCriteria
Parameters
input (object) the DOM node representing the input that is to be validated
criteria (object) the criteria object with which to validate
customOptions (object) object containing extra user-defined criteria or other customizeable options
Returns
boolean: true if the input passes all the criteria or false if it fails at least one