hide the validator
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
d847bc3859
commit
d459d5f933
@ -154,7 +154,7 @@ open class EntryFieldBase: Control, Changeable, FormFieldValidatable {
|
||||
open var showError: Bool = false { didSet { setNeedsUpdate() } }
|
||||
|
||||
/// FormFieldValidator
|
||||
open var validator: (any FormFieldValidatorable)?
|
||||
internal var validator: (any FormFieldValidatorable)?
|
||||
|
||||
/// Whether or not to show the internal error
|
||||
open var hasInternalError: Bool { !(validator?.isValid ?? true) }
|
||||
|
||||
@ -24,8 +24,6 @@ public protocol FormFieldValidatable: FormFieldable {
|
||||
var hasInternalError: Bool { get }
|
||||
/// Internal Error Message that will show.
|
||||
var internalErrorText: String? { get }
|
||||
/// Validator that will run the Field Validation
|
||||
var validator: (any FormFieldValidatorable)? { get set }
|
||||
}
|
||||
|
||||
/// Struct that will execute the validation.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user