ValidatorElement.setCustomValidity method
ValidatorElement › setCustomValidity
Sets a custom error message on the element.Signature:
setCustomValidity(error: string): voidParameters:
| Parameter | Type | Description |
|---|---|---|
| error | string | The error message to set on the element. |
Returns: void