merge
This commit is contained in:
9
samples/clipboard-widget.lua
Normal file
9
samples/clipboard-widget.lua
Normal 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
|
||||
@@ -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
14
samples/table-sample.lua
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user