Interface ValidityState
interface ValidityState {
badInput: boolean;
customError: boolean;
patternMismatch: boolean;
rangeOverflow: boolean;
rangeUnderflow: boolean;
stepMismatch: boolean;
tooLong: boolean;
tooShort: boolean;
typeMismatch: boolean;
valid: boolean;
valueMissing: boolean;
}
badInput: boolean;
customError: boolean;
patternMismatch: boolean;
rangeOverflow: boolean;
rangeUnderflow: boolean;
stepMismatch: boolean;
tooLong: boolean;
tooShort: boolean;
typeMismatch: boolean;
valid: boolean;
valueMissing: boolean;
}
Properties
Readonly
badInput
badInput : boolean
Readonly
customError
customError : boolean
Readonly
patternMismatch
patternMismatch : boolean
Readonly
rangeOverflow
rangeOverflow : boolean
Readonly
rangeUnderflow
rangeUnderflow : boolean
Readonly
stepMismatch
stepMismatch : boolean
Readonly
tooLong
tooLong : boolean
Readonly
tooShort
tooShort : boolean
Readonly
typeMismatch
typeMismatch : boolean
Readonly
valid
valid: boolean
Readonly
valueMissing
valueMissing : boolean
The validity states that an element can be in, with respect to constraint validation. Together, they help explain why an element's value fails to validate, if it's not valid.
MDN Reference