TabItem.text read/write property
Get or set the item caption as a string.
Example
local ui = require "ui"
-- create a simple Window
local win = ui.Window("TabItem.text sample", "fixed", 360, 240)
local tab = ui.Tab(win, {"LuaRT", "is", "fun !"})
-- set list selected property to the first item "LuaRT"
tab.selected = tab.items[1]
function tab:onSelect(item)
-- update window status with the item caption
win:status("You have selected = "..item.text)
end
win:show()
-- update user interface
repeat
ui.update()
until not win.visible