updated linkmodel
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
afea918aa4
commit
84a03573ab
@ -68,7 +68,7 @@ extension InputField {
|
|||||||
inputField.actionTextLink.text = actionModel.text
|
inputField.actionTextLink.text = actionModel.text
|
||||||
inputField.actionTextLink.onClick = { [weak self] _ in
|
inputField.actionTextLink.onClick = { [weak self] _ in
|
||||||
guard let self else { return }
|
guard let self else { return }
|
||||||
actionModel.onClick(inputField.value)
|
actionModel.onClick(inputField)
|
||||||
}
|
}
|
||||||
inputField.actionTextLink.isHidden = false
|
inputField.actionTextLink.isHidden = false
|
||||||
inputField.containerStackView.setCustomSpacing(VDSLayout.space2X, after: inputField.statusIcon)
|
inputField.containerStackView.setCustomSpacing(VDSLayout.space2X, after: inputField.statusIcon)
|
||||||
@ -91,8 +91,11 @@ extension InputField {
|
|||||||
//placeholder
|
//placeholder
|
||||||
inputField.textField.placeholder = placeholderText
|
inputField.textField.placeholder = placeholderText
|
||||||
|
|
||||||
//tooltip
|
//tooltip from Types take precedence
|
||||||
inputField.tooltipModel = toolTipModel
|
//if one was set, it would show as usual.
|
||||||
|
if let toolTipModel {
|
||||||
|
inputField.tooltipModel = toolTipModel
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func appendRules(_ inputField: InputField) {}
|
func appendRules(_ inputField: InputField) {}
|
||||||
|
|||||||
@ -14,9 +14,9 @@ extension InputField {
|
|||||||
public var text: String
|
public var text: String
|
||||||
|
|
||||||
///Click event when you click on a tab
|
///Click event when you click on a tab
|
||||||
public var onClick: ((String?) -> Void)
|
public var onClick: ((InputField) -> Void)
|
||||||
|
|
||||||
public init(text: String = "Apply", onClick: @escaping (String?) -> Void) {
|
public init(text: String = "Apply", onClick: @escaping (InputField) -> Void) {
|
||||||
self.text = text
|
self.text = text
|
||||||
self.onClick = onClick
|
self.onClick = onClick
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user