List:show()method
Show and activate the List (events can now be fired).
Return value
This function returns no value.Example
--! luart-extensions
import ui
-- create a simple Window
local win = ui.Window("List:show() sample", 320, 200)
local list = ui.List(win, {"LuaRT"}, 110, 80)
list.selected = list.items[1]
list.font = "Impact"
list.fontsize = 18
-- Spawn a Task to hide/show list every 500ms
async(function()
while true do
list:show()
sleep(500)
list:hide()
sleep(500)
end
end)
await win:showasync()