A tab-group container. Use AddTab to add named tabs, each with its own ContainerWrapper for further nested elements.

const tabs = UI.AddTabGroup();
const tab1 = tabs.AddTab("Settings", (t) => {
t.AddToggle("verbose", "Verbose logging");
});
interface TabGroupWrapper {
    Hide(): void;
    Show(): void;
    Destroy(): void;
    AddTab(
        name: string,
        builder?: (tab: ContainerWrapper) => void,
    ): ContainerWrapper;
}

Hierarchy (View Summary)

Methods

  • Hides the element without destroying it. Call Show() to make it visible again.

    Returns void

  • Makes a previously hidden element visible again.

    Returns void

  • Permanently removes the element from the UI panel.

    Returns void