Tab:hide() method


Hide and deactivate the Tab (events can no longer be fired).

Return value

This function returns no value.

Example

local ui = require "ui" -- create a simple Window local win = ui.Window("Tab:hide() sample", 310, 220) local tab = ui.Tab(win, {"LuaRT"}) 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()