...
Attribute | Description | Required? |
---|---|---|
object | object that needs to be validated | |
title | Heading of validation messages displayed to authors, "Validation messages:" by default | |
displayErrors | Defines if error messages should be displayed or not. The boolean value which should be based on CQ mode | |
var | Variable where validation result will be stored for further use | |
appName | Application name (optional), allows specifying the injector name |
Blank values approach
There is a special case of validation where we'd like to inform authors that the component has not been edited yet and it needs author's attention. This is especially useful when an author drags and drops a new component onto paragraph system, and the component needs to render itself. Usually, such component cannot pass validation without being edited first what's resulting in displaying error messages. This can be, in turn, misleading for authors.
...