Tree:hide() method


Hide and deactivate the Tree (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("Tree:show() sample", 320, 200) local tree = ui.Tree(win, {"LuaRT"}, 110, 20) -- Spawn a Task to hide/show tree every 500ms async(function() while true do tree:hide() sleep(500) tree:show() sleep(500) end end) ui.run(win):wait()