Skip to main content

InputValidation

Configuration for input validation rules

Index

ColumnColumn
InputValidation.minLengthInputValidation.minLengthError
InputValidation.rangeInputValidation.rangeError
InputValidation.regexInputValidation.regexError
InputValidation.requiredInputValidation.requiredError

Properties

minLength

minLength: number

Optional

Minimum length required for the input.

minLengthError

minLengthError: string

Optional

Error message to display when input length is less than the required minimum.

range

range: string

Optional

Range of values allowed for the input.

rangeError

rangeError: string

Optional

Error message to display when input value is outside the allowed range.

regex

regex: string

Optional

Regular expression pattern to validate the input against.

regexError

regexError: string

Optional

Error message to display when input doesn't match the regex pattern.

required

required: boolean

Optional

Determines if the input is required.

requiredError

requiredError: string

Optional

Error message to display when input is required but not provided.