add ui:show_checkbox_dialog

This commit is contained in:
Evgeny
2021-08-02 18:21:19 +03:00
parent 0357bfdf5a
commit d5d5504631
2 changed files with 13 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
function on_resume()
ui:show_text("Open dialog")
end
function on_click()
dialog_items = { "One", "Two", "Three" }
ui:show_checkbox_dialog("Title", dialog_items, "Two")
end
function on_dialog_action(idx)
ui:show_toast("Checked: "..dialog_items[idx])
end