ElementsNavigation & windows
AddSubTab
Add a nested tab using an automatically created shared manager.
AddSubTab
Container:AddSubTab(config) creates or reuses the default nested-tab manager for that container, then returns the new page's element API. Aliases: CreateSubTab and SubTab.
local General = Tab:AddSubTab({
Name = "General",
Icon = "home",
TabAccent = Color3.fromRGB(90, 140, 255),
})
General:AddLabel({Text = "General settings"})
local More = Tab:AddSubTab({Name = "More", Icon = "layers"})
More:AddButton({Name = "Print", Callback = function() print("More settings") end})
More:Select()All child tab options are listed under AddSubTabs. The first call also seeds the manager's Height and Color / TabAccent. The automatic manager uses fill mode, so its height follows available parent space. Use an explicit AddSubTabs manager and Fill = false for a fixed height.
The returned page supports normal constructors such as AddButton, AddToggle, AddSlider, and AddLabel.