ValidityState
Overview
ValidityState is a class in Aspose.Html FOSS for Python.
Constraint-validation flags for a form control.
This class provides 1 method for working with ValidityState objects in Python programs.
Available methods include: __init__.
All public members are accessible to any Python application after installing the Aspose.Html FOSS for Python package.
Properties: bad_input, custom_error, pattern_mismatch, range_overflow, range_underflow, step_mismatch, and 5 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
value_missing | bool | Read | Gets the value missing. |
type_mismatch | bool | Read | Gets the type mismatch. |
pattern_mismatch | bool | Read | Gets the pattern mismatch. |
too_long | bool | Read | Gets the too long. |
too_short | bool | Read | Gets the too short. |
range_underflow | bool | Read | Gets the range underflow. |
range_overflow | bool | Read | Gets the range overflow. |
step_mismatch | bool | Read | Gets the step mismatch. |
bad_input | bool | Read | Gets the bad input. |
custom_error | bool | Read | Gets the custom error. |
valid | bool | Read | Whether all non-valid flags are false. |
Methods
| Signature | Description |
|---|---|
__init__(value_missing: bool, type_mismatch: bool, pattern_mismatch: bool, too_long: bool, too_short: bool, range_underflow: bool, range_overflow: bool, step_mismatch: bool, bad_input: bool, custom_error: bool) | Calls init(value_missing, type_mismatch, pattern_mismatch, too_long, too_short, range_underflow, range_overflow, step_mismatch, bad_input, custom_error) on this ValidityState instance. |