Tree.enabled
Get or set the tree ability to respond to mouse, and any other events. When set to false, disable the Tree (the user will not be able to interact with it), and tree's events won't be fired anymore.
Example
--! luart-extensions
import ui
-- create a simple Window
local win = ui.Window("Tree.enabled sample", 320, 200)
ui.Tree(win, {"I'm disabled :(", "Item 1", "Item 2"}, 106, 20).enabled = false
win:show()
-- update user interface
repeat
ui.update()
until not win.visible