updated tilelet

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
Matt Bruce 2023-08-02 12:04:07 -05:00
parent 0763df0c3a
commit fa29d8834a

View File

@ -55,6 +55,7 @@ class TileletViewController: BaseViewController<Tilelet> {
override func setupForm(){
super.setupForm()
addFormRow(label: "Surface", view: surfacePickerSelectorView)
addActionRow()
addFormRow(label: "Clickable", view: clickableSwitch)
addFormRow(label: "Title Style", view: titleStandardStylePickerSelectorView)
@ -74,9 +75,7 @@ class TileletViewController: BaseViewController<Tilelet> {
clickableSwitch.onChange = { [weak self] sender in
guard let self else { return }
if sender.isOn {
self.component.onClick = { t in
print("you click on me!")
}
self.component.onClickActionPublisher("Tilelet", label: actionLabel)
} else {
self.component.onClick = nil
}