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
|
isEditting = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// append any internal rules:
|
||||||
|
viewModel.rules = rules
|
||||||
|
|
||||||
/// No point in configuring if the TextView is Read-only.
|
/// No point in configuring if the TextView is Read-only.
|
||||||
if textView.isEditable {
|
if textView.isEditable {
|
||||||
FormValidator.setupValidation(for: viewModel, delegate: delegateObject?.formHolderDelegate)
|
FormValidator.setupValidation(for: viewModel, delegate: delegateObject?.formHolderDelegate)
|
||||||
|
|||||||
@ -9,7 +9,7 @@
|
|||||||
import UIKit
|
import UIKit
|
||||||
import VDS
|
import VDS
|
||||||
|
|
||||||
public class TextViewEntryFieldModel: TextEntryFieldModel {
|
public class TextViewEntryFieldModel: TextEntryFieldModel, FormFieldInternalValidatableProtocol {
|
||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
// MARK: - Properties
|
// MARK: - Properties
|
||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
@ -25,6 +25,11 @@ public class TextViewEntryFieldModel: TextEntryFieldModel {
|
|||||||
public var transparentBackground: Bool = false
|
public var transparentBackground: Bool = false
|
||||||
public var width: CGFloat?
|
public var width: CGFloat?
|
||||||
|
|
||||||
|
//--------------------------------------------------
|
||||||
|
// MARK: - FormFieldInternalValidatableProtocol
|
||||||
|
//--------------------------------------------------
|
||||||
|
open var rules: [AnyRule<String>]?
|
||||||
|
|
||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
// MARK: - Keys
|
// MARK: - Keys
|
||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user