XLQP Gen1
ElementsNavigation & windows

CreateTopTab

Creates a tab for a top-oriented tab container.

CreateTopTab

What it does

Creates a tab for a top-oriented tab container.

When to use it

Use it when building horizontal navigation through the factory API.

TabFunction:CreateTopTab(TabConfig)

local MainTabs = Window:CreateTopTab({
    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.