updated onclick
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
d4fcb5436b
commit
0ab83fa7a8
@ -19,7 +19,8 @@ extension InputField {
|
||||
|
||||
override func updateView(_ inputField: InputField) {
|
||||
minWidth = 102.0
|
||||
|
||||
actionModel = inputField.actionTextLinkModel
|
||||
|
||||
super.updateView(inputField)
|
||||
}
|
||||
}
|
||||
|
||||
@ -12,11 +12,11 @@ extension InputField {
|
||||
|
||||
///Text that goes in the Tab
|
||||
public var text: String
|
||||
|
||||
|
||||
///Click event when you click on a tab
|
||||
public var onClick: ((TextLink) -> Void)?
|
||||
|
||||
public init(text: String, onClick: ((TextLink) -> Void)? = nil) {
|
||||
public var onClick: ((String?) -> Void)
|
||||
|
||||
public init(text: String = "Apply", onClick: @escaping (String?) -> Void) {
|
||||
self.text = text
|
||||
self.onClick = onClick
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user