# Sandbox.UI.TabBar

A strip of selectable tabs, independent of their content.

- Kind: class
- Namespace: `Sandbox.UI`
- Assembly: `Sandbox.Engine`
- Inherits: [Sandbox.UI.Panel](/api/Sandbox.UI.Panel)

## Constructors

- [`TabBar`](/api/Sandbox.UI.TabBar/.ctor)

## Properties

- [`AllowReorder`](/api/Sandbox.UI.TabBar/AllowReorder): Enable dragging to change tab order. Off by default.
- [`AutoHideText`](/api/Sandbox.UI.TabBar/AutoHideText): Automatically hide titles on tabs with icons when each tab has too little space.
- [`CanCloseTab`](/api/Sandbox.UI.TabBar/CanCloseTab): Return false to cancel closing, for example while asking about unsaved changes.
- [`MinimumTextWidth`](/api/Sandbox.UI.TabBar/MinimumTextWidth): Minimum available width per tab, in CSS pixels, before switching to icons. Default is 100.
- [`SelectedTab`](/api/Sandbox.UI.TabBar/SelectedTab): The selected tab, or null when empty.
- [`Tabs`](/api/Sandbox.UI.TabBar/Tabs): Tabs in display order.

## Methods

- [`AddTab`](/api/Sandbox.UI.TabBar/AddTab)
- [`CloseTab`](/api/Sandbox.UI.TabBar/CloseTab): Request closing. Nonclosable tabs and vetoed requests are left alone.
- [`FinalLayout`](/api/Sandbox.UI.TabBar/FinalLayout)
- [`MoveTab`](/api/Sandbox.UI.TabBar/MoveTab): Move a tab to a zero-based position without changing selection.
- [`OnButtonTyped`](/api/Sandbox.UI.TabBar/OnButtonTyped)
- [`RemoveTab`](/api/Sandbox.UI.TabBar/RemoveTab): Remove and delete a tab regardless of its close policy.
- [`SelectTab`](/api/Sandbox.UI.TabBar/SelectTab): Select a tab belonging to this bar.
- [`Tick`](/api/Sandbox.UI.TabBar/Tick)
