The tab.visible property is also affected by the Tab:show() and Tab:hide() methods.
Tab.visible read/write property
Get or set the Tab visibility on screen, a true value means that the Tab is shown, a false value means that the Tab is hidden.
Example
local ui = require "ui"
-- create a simple tab
local win = ui.Window("Tab.visible sample", 320, 250)
local tab = ui.Tab(win, {"LuaRT"}, 10, 40)
local button = ui.Button(win, "Click to hide tab", 110, 10)
tab.font = "Impact"
tab.fontsize = 18
-- hides the tab and shows it again after 2 sec
function button:onClick()
tab.visible = false
button.enabled = false
sleep(2000)
button.enabled = true
tab.visible = true
end
ui.run(win):show()