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!")

View File

@@ -7,6 +7,9 @@ function on_resume()
{ "share", "Menu item 1" },
{ "copy", "Menu item 2" },
{ "trash", "Menu item 3" },
{ "share", "Menu item 4" },
{ "copy", "Menu item 5" },
{ "trash", "Menu item 6" },
})
end