LengthValidation

data class LengthValidation(errorMessage: String, minLength: Int?, maxLength: Int?) : EnterpriseTextInputField.ValidationType

Validates on minLength and maxLength parameters.

Parameters

errorMessage

Type-specific error message String.

minLength

Optional Int? minimum length (inclusive).

maxLength

Optional Int? maximum length (inclusive).

Constructors

LengthValidation
Link copied to clipboard
fun LengthValidation(errorMessage: String, minLength: Int? = null, maxLength: Int? = null)
Type-specific error message String.

Properties

errorMessage
Link copied to clipboard
open override val errorMessage: String
Type-specific error message String.
maxLength
Link copied to clipboard
val maxLength: Int? = null
Optional Int?
minLength
Link copied to clipboard
val minLength: Int? = null
Optional Int?

Functions

isValid
Link copied to clipboard
open override fun isValid(text: String): Boolean