vds_ios/VDS/Components/TextFields/InputField/TextLinkModel.swift
Matt Bruce ca1e7e2b87 added accessibleText
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
2024-04-19 14:55:41 -05:00

29 lines
676 B
Swift

//
// EntryFieldTextLinkModel.swift
// VDS
//
// Created by Matt Bruce on 4/16/24.
//
import Foundation
extension InputField {
public struct TextLinkModel {
///Text that goes in the Tab
public var text: String
///Text that goes in the Tab
public var accessibleText: String?
///Click event when you click on a tab
public var onClick: ((TextLink) -> Void)?
public init(text: String, accessibleText: String? = nil, onClick: ((TextLink) -> Void)? = nil) {
self.text = text
self.accessibleText = accessibleText
self.onClick = onClick
}
}
}