textValidator(int = None,
minLength: int = None,
maxLength: bool = True,
allowDigits: str = None
error: -> ValidatorModel )
Validators
textValidator()
A validator for text values.
Signature
Arguments
maxLength
: int
Maximum length for the text validator.
allowDigits
: bool
Whether to allow digits for the text validator. Default is True.
error
: str
Custom error text to display. Optional.
emailValidator()
A validator for email values.
Signature
emailValidator(str = None
error: -> ValidatorModel )
Arguments
regexValidator()
A regex based validator.
Signature
regexValidator(str = None,
regex: str = None
error: -> ValidatorModel )
Arguments
error
: str
Custom error text to display. Optional
expressionValidator()
An expression based validator.
Signature
expressionValidator(str = None,
expression: str = None
error: -> ValidatorModel )
Arguments
error
: str
Custom error text to display. Optional
numberValidator()
A validator for number values.
Signature
numberValidator(int = None,
minValue: int = None,
maxValue: str = None
error: -> ValidatorModel )
Arguments
maxValue
: int
Maximum value for the number validator.
error
: str
Custom error text to display. Optional.
answerCountValidator()
A validator for answer count.
Signature
answerCountValidator(int = None,
minCount: int = None,
maxCount: str = None
error: -> ValidatorModel )
Arguments
maxCount
: int
Maximum count for the answer count validator.
error
: str
Custom error text to display. Optional