ElementsNavigation & windows
CreateTab
Creates a tab controller for a supported navigation container.
CreateTab
What it does
Creates a tab controller for a supported navigation container.
When to use it
Use it when building navigation through the lower-level factory API.
TabFunction:CreateTab(TabConfig)
local ToolsTab = Window:CreateTab({
Name = "Tools",
Icon = "wrench",
Group = "Utilities",
GroupIcon = "folder",
GroupLayoutOrder = 2,
LayoutOrder = 10,
PremiumOnly = false,
Changelog = {
"Added server tools",
"Improved navigation",
},
Cooldown = 300,
AutoHome = false,
OnSelect = function(tab)
print("Selected:", tab.Name)
end,
})Behavior and return value
Store the returned controller or object when later code needs to update its state, call its methods, or close it.
Fields marked optional may be omitted. XLQP then uses the method’s built-in default or leaves that feature disabled.