refactored model to correct properties

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
Matt Bruce 2024-03-21 11:16:43 -05:00
parent 5ce775a885
commit c23e7f700b

View File

@ -12,21 +12,20 @@ extension Breadcrumbs {
///Text that goes in the breadcrumb item
public var text: String
/// The Breadcrumb link to links to its respective page.
public var link: String
public var enabled: Bool
/// The Breadcrumb link to links to its respective page.
public var isSelected: Bool?
public var selected: Bool
///Click event when you click on a breadcrumb item
public var onClick: ((BreadcrumbItem) -> Void)?
public init(text: String, link: String, isSelected: Bool? = false, onClick: ((BreadcrumbItem) -> Void)? = nil) {
public init(text: String, enabeled: Bool = true, selected: Bool = false, onClick: ((BreadcrumbItem) -> Void)? = nil) {
self.text = text
self.isSelected = isSelected
self.enabled = enabeled
self.selected = selected
self.onClick = onClick
self.link = link
}
}
}