updated tilelet
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
0763df0c3a
commit
fa29d8834a
@ -55,6 +55,7 @@ class TileletViewController: BaseViewController<Tilelet> {
|
|||||||
override func setupForm(){
|
override func setupForm(){
|
||||||
super.setupForm()
|
super.setupForm()
|
||||||
addFormRow(label: "Surface", view: surfacePickerSelectorView)
|
addFormRow(label: "Surface", view: surfacePickerSelectorView)
|
||||||
|
addActionRow()
|
||||||
addFormRow(label: "Clickable", view: clickableSwitch)
|
addFormRow(label: "Clickable", view: clickableSwitch)
|
||||||
|
|
||||||
addFormRow(label: "Title Style", view: titleStandardStylePickerSelectorView)
|
addFormRow(label: "Title Style", view: titleStandardStylePickerSelectorView)
|
||||||
@ -74,9 +75,7 @@ class TileletViewController: BaseViewController<Tilelet> {
|
|||||||
clickableSwitch.onChange = { [weak self] sender in
|
clickableSwitch.onChange = { [weak self] sender in
|
||||||
guard let self else { return }
|
guard let self else { return }
|
||||||
if sender.isOn {
|
if sender.isOn {
|
||||||
self.component.onClick = { t in
|
self.component.onClickActionPublisher("Tilelet", label: actionLabel)
|
||||||
print("you click on me!")
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
self.component.onClick = nil
|
self.component.onClick = nil
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user