List.border read/write property
Get or set the List border visibility, a true
value means that the border is shown, a false
value means that the border is hidden.
Example
local ui = require "ui"
local win = ui.Window("List.border sample", 320, 260)
-- create a simple centered list
local list = ui.List(win, {"Item1", "Item2", "Item3"})
list:center()
local button = ui.Button(win, "Hide/Show border", 90, 10)
-- Hides/Shows List border when button is clicked
function button:onClick()
list.border = not list.border
end
ui.run(win):wait()