updated textViewEntry
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
c8d817948b
commit
b5f61953df
@ -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)
|
||||
|
||||
@ -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
|
||||
//--------------------------------------------------
|
||||
|
||||
Loading…
Reference in New Issue
Block a user