renderAllErrors() function
Creates a renderer function that renders all validation error messages of a validation result.
Syntax
renderAllErrors()renderAllErrors(errorPropName)renderAllErrors(errorPropName, toString)Parameters
-
errorPropNameoptional
A property name of an error message supplied with a predicate function asanyDatawhen adding as a constraint.
Default:'msg'. -
toStringoptional
A function that accepts a validation result entry with the property name in it, index, and anArrayof the entries and returns a string.
Default: implementation: render-entry.js.
Return value
A function that accepts a ValidationResult object and returns a string.
Description
Creates a function that is intended to be used as the value property in the stateValues object which is passed as a parameter into the applyBox() function.
Implementation: render-all-errors.js.