added accessibleText
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
37890e0c88
commit
ca1e7e2b87
@ -12,12 +12,16 @@ extension InputField {
|
|||||||
|
|
||||||
///Text that goes in the Tab
|
///Text that goes in the Tab
|
||||||
public var text: String
|
public var text: String
|
||||||
|
|
||||||
|
///Text that goes in the Tab
|
||||||
|
public var accessibleText: String?
|
||||||
|
|
||||||
///Click event when you click on a tab
|
///Click event when you click on a tab
|
||||||
public var onClick: ((TextLink) -> Void)?
|
public var onClick: ((TextLink) -> Void)?
|
||||||
|
|
||||||
public init(text: String, onClick: ((TextLink) -> Void)? = nil) {
|
public init(text: String, accessibleText: String? = nil, onClick: ((TextLink) -> Void)? = nil) {
|
||||||
self.text = text
|
self.text = text
|
||||||
|
self.accessibleText = accessibleText
|
||||||
self.onClick = onClick
|
self.onClick = onClick
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user