Validatable
Properties
4
Properties
4Class hierarchy
Misc
Functions
3
Functions
3Removes an error message from the list of errors on this field.
By default, the field's valid/invalid state is updated; pass false as the second parameter to disable that if
multiple changes are being made to the error state.
| Parameter | Type | Description |
|---|---|---|
error | String | A locale string, or message to remove. If not passed, all errors are cleared. |
silent | Boolean | Pass as |
Returns an array of error messages as set by setError, or
undefined if there are currently no errors.
The errors for this field, or undefined if there are no errors.
Adds an error message to the list of errors on this field.
By default, the field's valid/invalid state is updated; pass
false as the second parameter to disable that if multiple
changes are being made to the error state.
Note, that you need to manually remove the added error with the clearError method to "release" the normal data update process (invalid data won't be synced). You can also use the 3rd argument of this method to automatically remove the error upon the next user interaction.
| Parameter | Type | Description |
|---|---|---|
error | String | A locale string, or message to use as an error message. |
silent | Boolean | Pass as |
temporary | Boolean | Pass as |