|
Ultralight C++ API 2.0.0
|
#include <Ultralight/dom/Element.h>
The ways a form control fails its constraints (ValidityState).
Get one from HTMLInputElement::validity() (or the textarea and select versions). It's a snapshot, so unlike the web's live ValidityState it doesn't change when the control does.
Public Attributes | |
| bool | valueMissing = false |
| A required control has no value. | |
| bool | typeMismatch = false |
| The value doesn't fit the input type (eg, a bad email). | |
| bool | patternMismatch = false |
| The value doesn't match the pattern attribute. | |
| bool | tooLong = false |
| The user made the value longer than maxlength. | |
| bool | tooShort = false |
| The user made the value shorter than minlength. | |
| bool | rangeUnderflow = false |
| The value is less than min. | |
| bool | rangeOverflow = false |
| The value is greater than max. | |
| bool | stepMismatch = false |
| The value doesn't fit the step attribute. | |
| bool | badInput = false |
| The user entered something the control can't convert. | |
| bool | customError = false |
| A custom error message is set. | |
| bool | valid = false |
| None of the above are true. | |
| bool badInput = false |
The user entered something the control can't convert.
| bool customError = false |
A custom error message is set.
| bool patternMismatch = false |
The value doesn't match the pattern attribute.
| bool rangeOverflow = false |
The value is greater than max.
| bool rangeUnderflow = false |
The value is less than min.
| bool stepMismatch = false |
The value doesn't fit the step attribute.
| bool tooLong = false |
The user made the value longer than maxlength.
| bool tooShort = false |
The user made the value shorter than minlength.
| bool typeMismatch = false |
The value doesn't fit the input type (eg, a bad email).
| bool valid = false |
None of the above are true.
| bool valueMissing = false |
A required control has no value.