add some samples
This commit is contained in:
7
samples/autoreload-test.lua
Normal file
7
samples/autoreload-test.lua
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
function on_resume()
|
||||||
|
local booleans = { true, false }
|
||||||
|
|
||||||
|
if booleans[math.random(1, 2)] then
|
||||||
|
ui:show_text("Loaded!")
|
||||||
|
end
|
||||||
|
end
|
||||||
11
samples/folding-test.lua
Normal file
11
samples/folding-test.lua
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
function on_resume()
|
||||||
|
ui:show_lines({ "One", "Two", "Three" }, nil, "Folded")
|
||||||
|
end
|
||||||
|
|
||||||
|
function on_click(idx)
|
||||||
|
if idx == 0 then
|
||||||
|
ui:show_toast("Folded")
|
||||||
|
else
|
||||||
|
ui:show_toast("Not folded")
|
||||||
|
end
|
||||||
|
end
|
||||||
Reference in New Issue
Block a user