Tab.parent readonly property
Get the parent object that owns the Tab.
Example
local ui = require "ui"
-- create a simple window
local win = ui.Window("Tab.parent sample", 320, 260)
local tab = ui.Tab(win, {'Item 1', "Item 2"}, 10, 50)
local button = ui.Button(win, 'Show Tab parent', 96, 10)
tab.selected = tab.items[1]
function button:onClick()
ui.info("Tab's parent is "..tostring(tab.parent))
end
win:show()
-- update the user interface until the user closes the Window
repeat
ui.update()
until not win.visible