Tab:show() method
Show and activate the Tab (events can now be fired).
Return value
This function returns no value.Example
local ui = require "ui"
-- create a simple Window
local win = ui.Window("Tab:show() sample", 320, 250)
local tab = ui.Tab(win, {"LuaRT"}, 1, 80)
tab.selected = tab.items[1]
tab.font = "Impact"
tab.fontsize = 18
-- Spawn a Task to hide/show tab every 500ms
async(function()
while true do
tab:hide()
sleep(500)
tab:show()
sleep(500)
end
end)
ui.run(win):wait()