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

NameTypeAccessDescription
value_missingboolReadGets the value missing.
type_mismatchboolReadGets the type mismatch.
pattern_mismatchboolReadGets the pattern mismatch.
too_longboolReadGets the too long.
too_shortboolReadGets the too short.
range_underflowboolReadGets the range underflow.
range_overflowboolReadGets the range overflow.
step_mismatchboolReadGets the step mismatch.
bad_inputboolReadGets the bad input.
custom_errorboolReadGets the custom error.
validboolReadWhether all non-valid flags are false.

Methods

SignatureDescription
__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.

See Also