Label:hide() method
Hide and deactivate the Label (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("Label:hide() sample", 320, 200)
local label = ui.Label(win, "LuaRT", 130, 80)
label.font = "Impact"
label.fontsize = 18
-- Spawn a Task to hide/show label every 500ms
async(function()
while true do
label:hide()
sleep(500)
label:show()
sleep(500)
end
end)
ui.run(win):wait()