Tab:onLeave() event
This event is fired when the mouse cursor leaves the Tab.
Return value
This event returns no value.Example
local ui = require "ui"
-- creates a simple window
local win = ui.Window("Tab:onLeave() event sample", 320, 260)
local tab = ui.Tab(win, {"TabItem 1", "TabItem 2", "TabItem 3"})
-- Tab:onLeave event
function tab:onLeave()
win:status("You are hovering the Tab Widget")
end
-- Tab:onLeave event
function tab:onLeave()
win:status("The Tab Widget is no longer hovered")
end
win:status("")
win:show()
-- update window
while win.visible do
ui.update()
end