TabItem.enabled read/write property
Get or set the TabItem content ability to respond to mouse, and any other events.
When set to false, the TabItem is disabled (the user will not be able to interact with its content), and TabItem childs controls events won't be fired anymore.
Example
local ui = require "ui"
-- create a simple Window
local win = ui.Window("TabItem.owner sample", "fixed", 320, 250)
local tab = ui.Tab(win, {"Tab 1", "Tab 2", "Tab 3"})
for i=1,3 do
ui.Button(tab.items[i], "Button "..i, 110,70)
end
-- disable second TabItem
tab.items[2].enabled = false
win:status("Tab.items[2] content is disabled !")
win:show()
-- update user interface
repeat
ui.update()
until not win.visible