s&
About
The Project
infoAbout s&box mapRoadmap monitoringMetricsEngine startup and usage numbers
Updates
newspaperLatest News published_with_changesChangesRelease-by-release changelog
Games
Browse Games Discover Games
gamejamsvoting

Game Jam III

Ends Fri 25 Sep
ThemeOne More Round

Voting is open. Play the entries and pick the winner.

£50,000
prizepool
View the jam
Workshop
Playable
sports_esportsGamesStandalone games and gamemodes
Assets
landscapeMaps view_in_arModels textureMaterials apparelClothing
appsEverythingEvery asset type in one list
Forum
Learn
Documentation
rocket_launchGetting Started docsDocumentation apiAPI Reference
Resources
schoolTutorials manage_searchCode Search
Get s&box
Sign in with Steam
Api
Classes
TabBar
chevron_left Classes
class
TabBar

Constructors

functionsTabBar

Properties

data_objectAllowReorderdata_objectAutoHideTextdata_objectCanCloseTabdata_objectMinimumTextWidthdata_objectSelectedTabdata_objectTabs

Methods

functionsAddTabfunctionsCloseTabfunctionsFinalLayoutfunctionsMoveTabfunctionsOnButtonTypedlockOnChildRemovedfunctionsRemoveTabfunctionsSelectTabfunctionsTick
TabBar
A strip of selectable tabs, independent of their content.
class Sandbox.UI .account_tree extends Panel
Sandbox.Engine

build Constructors 1

TabBar ()

data_object Properties 6

AllowReorder
bool
Enable dragging to change tab order. Off by default.
AutoHideText
bool
Automatically hide titles on tabs with icons when each tab has too little space.
CanCloseTab
Func`2
Return false to cancel closing, for example while asking about unsaved changes.
MinimumTextWidth
float
Minimum available width per tab, in CSS pixels, before switching to icons. Default is 100.
SelectedTab
Tab
The selected tab, or null when empty.
Tabs
IReadOnlyList`1
Tabs in display order.

functions Methods 9

AddTab (text, icon, canClose, count)
Tab
CloseTab (tab)
bool
Request closing. Nonclosable tabs and vetoed requests are left alone.
FinalLayout (offset)
MoveTab (tab, index)
Move a tab to a zero-based position without changing selection.
OnButtonTyped (e)
OnChildRemoved (child)
RemoveTab (tab)
bool
Remove and delete a tab regardless of its close policy.
SelectTab (tab)
Select a tab belonging to this bar.
Tick ()

Inheritance

Panel
TabBar
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.
Facepunch
  • News
  • Docs
  • Metrics
  • FAQ
  • Forum
  • Discord
  • Twitter