Tree.parent readonly property


Get the parent object that owns the Tree.

Example

local ui = require "ui" local win = ui.Window("Tree.parent sample", "fixed", 320, 240) local button = ui.Button(win, "Get Tree parent", 116, 10) local tree = ui.Tree(win, {"Sam", "David", "Jane"}, 104, 40) function button:onClick() ui.info("Tree parent is "..tostring(tree.parent)) end -- show the Window win:show() while win.visible do ui.update() end