added properties from model
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
a4b550cf03
commit
9e9a1ab853
@ -102,10 +102,9 @@ class TextViewEntryField: VDS.TextArea, VDSMoleculeViewProtocol, ObservingTextFi
|
|||||||
guard let self else { return }
|
guard let self else { return }
|
||||||
isEditting = false
|
isEditting = false
|
||||||
if let valid = viewModel.isValid {
|
if let valid = viewModel.isValid {
|
||||||
isValid = valid
|
updateValidation(valid)
|
||||||
}
|
}
|
||||||
showError = !isValid
|
|
||||||
|
|
||||||
}.store(in: &subscribers)
|
}.store(in: &subscribers)
|
||||||
|
|
||||||
//String(format: MVMCoreUIUtility.hardcodedString(withKey: "textView_error_message") ?? "", textView.text ?? "", entryFieldModel?.errorMessage ?? "")
|
//String(format: MVMCoreUIUtility.hardcodedString(withKey: "textView_error_message") ?? "", textView.text ?? "", entryFieldModel?.errorMessage ?? "")
|
||||||
@ -119,6 +118,13 @@ class TextViewEntryField: VDS.TextArea, VDSMoleculeViewProtocol, ObservingTextFi
|
|||||||
open func viewModelDidUpdate() {
|
open func viewModelDidUpdate() {
|
||||||
|
|
||||||
text = viewModel.text
|
text = viewModel.text
|
||||||
|
labelText = viewModel.title
|
||||||
|
helperText = viewModel.feedback
|
||||||
|
isEnabled = viewModel.enabled
|
||||||
|
isReadOnly = viewModel.readOnly
|
||||||
|
isRequired = viewModel.required
|
||||||
|
tooltipModel = viewModel.tooltip?.toVDSTooltipModel()
|
||||||
|
|
||||||
uiTextViewDelegate = delegateObject?.uiTextViewDelegate
|
uiTextViewDelegate = delegateObject?.uiTextViewDelegate
|
||||||
observingTextViewDelegate = delegateObject?.observingTextFieldDelegate
|
observingTextViewDelegate = delegateObject?.observingTextFieldDelegate
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user