Tab:onSelect(TabItem) event
Event fired when the user has choosen an item in the Tab.
Return value
The event returns no value.Example
local ui = require "ui"
-- create a window
local win = ui.Window("Tab:onSelect() sample", 320, 226)
local tab = ui.Tab(win, {"Sam", "Mary", "John"})
function tab:onSelect(item)
ui.info("Welcome "..item.text.." !")
end
win:show()
while win.visible do
ui.update()
end