added Tabs Selection Modal
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
aa8401c278
commit
55ffd72479
@ -106,6 +106,15 @@ class TabsViewController: BaseViewController<Tabs> {
|
||||
//set to the large sample
|
||||
component.tabModels = allTabs
|
||||
|
||||
//setup tester to show component was picked
|
||||
component.onTabDidSelect = { [weak self] index in
|
||||
guard let self else { return }
|
||||
let tabs = sampleSwitch.isOn ? self.allTabs : self.some
|
||||
self.presentTooltip(surface: self.component.surface,
|
||||
tooltipModel: .init(title: "Tab Selected",
|
||||
content: "You clicked on the \(tabs[index].text) Tab"))
|
||||
}
|
||||
|
||||
//setup UI
|
||||
surfacePickerSelectorView.text = component.surface.rawValue
|
||||
sizePickerSelectorView.text = component.size.rawValue
|
||||
@ -142,6 +151,7 @@ class TabsViewController: BaseViewController<Tabs> {
|
||||
// }
|
||||
}
|
||||
}
|
||||
extension TabsViewController: TooltipLaunchable {}
|
||||
|
||||
extension TabsViewController: ComponentSampleable {
|
||||
static func makeSample() -> ComponentSample {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user