@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="ValidityState")
public class ValidityState
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
protected |
ValidityState() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
badInput()
The read-only badInput property of a ValidityState object indicates if the user has provided input that the browser is unable to convert.
|
boolean |
customError() |
boolean |
patternMismatch()
If the field supports the pattern attribute -- which means the input is of type text, tel, email, url, password, or search -- and the pattern value is set to a valid regular expression, if the value don't doesn't conform to the constraints set by the pattern value, the patternMismatch property will be true.
|
boolean |
rangeOverflow()
The read-only rangeOverflow property of a ValidityState object indicates if the value of an input, after having been edited by the user, does not conform to the constraints set by the element's max attribute.
|
boolean |
rangeUnderflow()
The read-only rangeUnderflow property of a ValidityState object indicates if the value of an input, after having been edited by the user, does not conform to the constraints set by the element's min attribute.
|
boolean |
stepMismatch()
The read-only stepMismatch property of a ValidityState object indicates if the value of an input, after having been edited by the user, does not conform to the constraints set by the element's step attribute.
|
boolean |
tooLong()
The read-only tooLong property of a ValidityState object indicates if the value of an input or textarea, after having been edited by the user, exceeds the maximum code-unit length established by the element's maxlength attribute.
|
boolean |
tooShort()
The read-only tooShort property of a ValidityState object indicates if the value of an input, button, select, output, fieldset or textarea, after having been edited by the user, is less than the minimum code-unit length established by the element's minlength attribute.
|
boolean |
typeMismatch()
If the type attribute expects specific strings, such as the email and url types and the value don't doesn't conform to the constraints set by the type, the typeMismatch property will be true.
|
boolean |
valid() |
boolean |
valueMissing() |
@JsProperty(name="badInput") public boolean badInput()
@JsProperty(name="customError") public boolean customError()
@JsProperty(name="patternMismatch") public boolean patternMismatch()
@JsProperty(name="rangeOverflow") public boolean rangeOverflow()
@JsProperty(name="rangeUnderflow") public boolean rangeUnderflow()
@JsProperty(name="stepMismatch") public boolean stepMismatch()
@JsProperty(name="tooLong") public boolean tooLong()
@JsProperty(name="tooShort") public boolean tooShort()
@JsProperty(name="typeMismatch") public boolean typeMismatch()
@JsProperty(name="valid") public boolean valid()
@JsProperty(name="valueMissing") public boolean valueMissing()