Tree.border
Get or set the Tree border visibility, a true value means that the border is shown, a false value means that the border is hidden.
Example
Example
--! luart-extensions
import ui
local win = ui.Window("Tree.border sample", 320, 260)
-- create a simple centered list
local tree = ui.Tree(win, {"Item1", "Item2", "Item3"})
tree:center()
local button = ui.Button(win, "Hide/Show border", 90, 10)
-- Hides/Shows Tree border when button is clicked
function button:onClick()
tree.border = not tree.border
end
await win:showasync()