add currency widget

This commit is contained in:
Evgeny
2021-08-10 17:35:10 +03:00
parent 8364138f55
commit 8a03f7cfa8
3 changed files with 112 additions and 1 deletions

View File

@@ -17,7 +17,9 @@ function on_click(idx)
end
function on_dialog_action(value)
if value == 1 then
if value == -1 then
ui:show_toast("Cancelled")
elseif value == 1 then
ui:show_toast("Button 1 clicked!")
elseif value == 2 then
ui:show_toast("Button 2 clicked!")