Tab
A container widget that organizes multiple pages or panels of content into separate tabs, allowing users to switch between different sections within a single window.
local tab = Tab()
Hey!
Check out TabItem for more
Properties
- setOnTabClose(callback)
Executed when the tab is being closed
- addTab(tabitem, title, icon: optional):
Adds a
TabItem
to the widget
- setTabsCloseable(closeable: bool)
Sets whether tabs can be closed
- setTabsPosition(position)
Sets the side where the tabs appear:
left
,top
,right
,bottom
- setToolTip(index, text)
Sets tooltip text to a particular tab index
- getCurrentIndex()
Returns the current tab index
- removeTab(index)
Removes a tab on a specified index