Model Object
hasErrors()
Signature
Section titled “Signature”hasErrors() — returns boolean
Available in: model
Category: Error Functions
Description
Section titled “Description”Returns true if the object has any errors.
You can also limit to only check a specific property or name for errors.
Parameters
Section titled “Parameters”| Name | Type | Required | Default | Description |
|---|---|---|---|---|
property | string | no | — | Name of the property to check if there are any errors set on. |
name | string | no | — | Error name to check if there are any errors set with. |