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

@ -13,20 +13,19 @@ extension Breadcrumbs {
///Text that goes in the breadcrumb item ///Text that goes in the breadcrumb item
public var text: String public var text: String
/// The Breadcrumb link to links to its respective page. public var enabled: Bool
public var link: String
/// The Breadcrumb link to links to its respective page. /// 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 ///Click event when you click on a breadcrumb item
public var onClick: ((BreadcrumbItem) -> Void)? 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.text = text
self.isSelected = isSelected self.enabled = enabeled
self.selected = selected
self.onClick = onClick self.onClick = onClick
self.link = link
} }
} }
} }