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
gamejams
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
Table
chevron_left Classes
class
Table

Constructors

functionsTable

Properties

data_objectAligndata_objectColumnsdata_objectCookiedata_objectResizabledata_objectSortColumndata_objectSortDescending

Methods

functionsSetPropertyfunctionsTick

Static Fields

crop_dinMinimumWidth
Table
A table, written like an HTML one: <c>table</c>, <c>thead</c>, <c>tbody</c>, <c>tfoot</c>, <c>tr</c>, <c>th</c> and <c>td</c>. Its columns are laid out up front from Sandbox.UI.Table.Columns, and every row's cells line up on them.
class Sandbox.UI .account_tree extends Panel
Sandbox.Engine

build Constructors 1

Table ()

data_object Properties 6

Align
string
Each column's alignment, in step with Sandbox.UI.Table.Columns - left, center or right. A cell's own wins.
Columns
string
The columns' widths, as a CSS grid's: 1fr (a share of what's left), 120px, 25%, auto (as wide as its content) or minmax( 120px, 1fr ) (with a minimum width).
Cookie
string
Keeps the columns' dragged widths for next time, under this name.
Resizable
bool
Columns can be dragged wider or narrower by the edges between their headings.
SortColumn
string
The sort key the rows are in, shown on its heading.
SortDescending
bool
Whether the rows are sorted highest first.

functions Methods 2

SetProperty (name, value)
Tick ()

crop_din Static Fields 1

MinimumWidth
float
The narrowest a column goes without a minmax saying otherwise.

Inheritance

Panel
Table
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