Constructor
new ConstraintViolationMessage()
Properties:
Name | Type | Description |
---|---|---|
key |
string | the i18n translation key to use. It must map to the |
input-name |
string | the name of the input, used to insert into the message, e.g. "Title is required". |
server-side |
boolean | if true, this indicates the element contains constraint violation messages from the server. Currently doesn't affect this element's behavior, however AjaxSubmit will use it to locate where it should insert server-side errors. |
Methods
(static) i18nKey(…keyPath)
Returns the I18N key used for front-end constraint violations. This is useful if you need to construct a key and want to follow Brut's conventions on how they are managed.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
keyPath |
String |
<repeatable> |
parts of the path of the key after the namespace that Brut manages. |
- Source: