VgsRequiredFieldValidator

class VgsRequiredFieldValidator(val errorMsg: String = ERROR_MESSAGE) : VgsTextFieldValidator

Validator that fails when the field is blank.

Parameters

errorMsg

message returned when the field is empty or whitespace-only.

Constructors

Link copied to clipboard
constructor(errorMsg: String = ERROR_MESSAGE)

Types

Link copied to clipboard
object Companion
Link copied to clipboard
class Result(val isValid: Boolean, val errorMsg: String? = null) : VgsTextFieldValidationResult

Properties

Link copied to clipboard
open override val errorMsg: String