DateValidation

data class DateValidation(errorMessage: String, dateFormatString: String, dateFormat: DateFormat, constraints: CalendarConstraints) : EnterpriseTextInputField.ValidationType

Validates on dateFormat and constraints. Follows format from dateFormat

Parameters

errorMessage

Type-specific error message String.

Constructors

DateValidation
Link copied to clipboard
fun DateValidation(errorMessage: String, dateFormatString: String, dateFormat: DateFormat, constraints: CalendarConstraints)
Type-specific error message String.

Properties

constraints
Link copied to clipboard
val constraints: CalendarConstraints
dateFormat
Link copied to clipboard
val dateFormat: DateFormat
dateFormatString
Link copied to clipboard
val dateFormatString: String
errorMessage
Link copied to clipboard
open override val errorMessage: String
Type-specific error message String.

Functions

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