new ValidationState(message, stateEnum)
{constructor} creates a new ValidationState object with a validation message and state.
Parameters:
Name | Type | Description |
---|---|---|
message |
string | the validation message. |
stateEnum |
number | the int value of the enum. |
- Source:
Example
new ValidationState('required',stateEnum.invalid)