bug fixes

This commit is contained in:
Evgeny
2021-07-29 18:21:52 +03:00
parent ae0cdddc9c
commit 8dfc1f6324
2 changed files with 9 additions and 5 deletions

View File

@@ -7,9 +7,13 @@ function onClick(idx)
ui:showDialog("Dialog title", "This is dialog")
elseif idx == 2 then
ui:showDialog("Dialog title", "This is dialog", "Button 1", "Button 2")
elseif idx == 100 then
end
end
function onDialogClick(idx)
if idx == 1 then
ui:showToast("Button 1 clicked!")
elseif idx == 200 then
elseif idx == 2 then
ui:showToast("Button 2 clicked!")
end
end