updated textViewEntry

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
Matt Bruce 2024-07-12 14:58:05 -05:00
parent c8d817948b
commit b5f61953df
2 changed files with 9 additions and 1 deletions

View File

@ -176,6 +176,9 @@ open class TextViewEntryField: VDS.TextArea, VDSMoleculeViewProtocol, ObservingT
isEditting = true
}
/// append any internal rules:
viewModel.rules = rules
/// No point in configuring if the TextView is Read-only.
if textView.isEditable {
FormValidator.setupValidation(for: viewModel, delegate: delegateObject?.formHolderDelegate)

View File

@ -9,7 +9,7 @@
import UIKit
import VDS
public class TextViewEntryFieldModel: TextEntryFieldModel {
public class TextViewEntryFieldModel: TextEntryFieldModel, FormFieldInternalValidatableProtocol {
//--------------------------------------------------
// MARK: - Properties
//--------------------------------------------------
@ -25,6 +25,11 @@ public class TextViewEntryFieldModel: TextEntryFieldModel {
public var transparentBackground: Bool = false
public var width: CGFloat?
//--------------------------------------------------
// MARK: - FormFieldInternalValidatableProtocol
//--------------------------------------------------
open var rules: [AnyRule<String>]?
//--------------------------------------------------
// MARK: - Keys
//--------------------------------------------------