XLQP Gen1
ElementsNavigation & windows

MakeTopTab

Creates a primary tab in a top-navigation layout.

MakeTopTab

What it does

Creates a primary tab in a top-navigation layout.

XLQP Gen1 top-tab navigation in Roblox
The Main, Network, Scripts, and Direct top-tab row with the Direct workspace selected.

When to use it

Use it when your window uses horizontal rather than sidebar navigation.

TabFunction:MakeTopTab(TabConfig)

local MainTabs = Window:MakeTopTab({
    Name = "Main",
    MultiTab = true,
    OnSelect = function(tab)
        print("Selected top tab:", 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.