Add new drawer scripts
This commit is contained in:
25
samples/drawer-sample3.lua
Normal file
25
samples/drawer-sample3.lua
Normal file
@@ -0,0 +1,25 @@
|
||||
-- name = "Drawer Sample #3"
|
||||
-- type = "drawer"
|
||||
-- testing = "true"
|
||||
|
||||
local list = {
|
||||
"abc",
|
||||
"launch_count",
|
||||
"launch_time",
|
||||
"install_time",
|
||||
"appbox",
|
||||
"categories",
|
||||
"close",
|
||||
}
|
||||
|
||||
function on_drawer_open()
|
||||
drawer:show_list(list)
|
||||
end
|
||||
|
||||
function on_click(idx)
|
||||
if list[idx] == "close" then
|
||||
drawer:close()
|
||||
else
|
||||
drawer:change_view(list[idx])
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user