This commit is contained in:
Evgeny
2021-08-19 08:39:53 +03:00
8 changed files with 453 additions and 7 deletions

View File

@@ -0,0 +1,9 @@
-- name = "Clipboard"
-- description = "Shows current Clipboard contents"
-- type = "widget"
-- author = "Evgeny Zobnin (zobnin@gmail.com)"
-- version = "1.0"
function on_resume()
ui:show_text(system:get_from_clipboard())
end

View File

@@ -8,7 +8,7 @@ end
function on_click(idx)
if idx == 1 then
ui:show_dialog("Dialog title", "This is dialog")
ui:show_dialog("Dialog title\nSubtitle", "This is dialog")
elseif idx == 2 then
ui:show_dialog("Dialog title", "This is dialog", "Button 1", "Button 2")
elseif idx == 3 then

14
samples/table-sample.lua Normal file
View File

@@ -0,0 +1,14 @@
function on_resume()
local table = {
"1", "20", "30",
"40", "5", "66",
"07", "28", "9",
}
ui:show_table(table, 3, true, "Nothing there")
end
function on_click(idx)
ui:show_toast("Cell: "..idx)
end