renderProperty() function
Creates a renderer function that renders the specified property of a validation result.
Syntax
renderProperty()renderProperty(propName)renderProperty(propName, toString)
Parameters
-
propName
optional
A property name supplied with a predicate function asanyData
when adding as a constraint.
Default:'msg'
. -
toString
optional
A function that accepts a validation result entry with the property name in it, index, and anArray
of 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.