renderProperty() function
Creates a renderer function that renders the specified property of a validation result.
Syntax
renderProperty()renderProperty(propName)renderProperty(propName, toString)Parameters
-
propNameoptional
A property name 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-property.js.