s&
About
The Project
info
About s&box
map
Roadmap
monitoring
Metrics
Engine startup and usage numbers
Updates
newspaper
Latest News
published_with_changes
Changes
Release-by-release changelog
Games
Browse Games
Discover Games
gamejams
Workshop
Playable
sports_esports
Games
Standalone games and gamemodes
Assets
landscape
Maps
view_in_ar
Models
texture
Materials
apparel
Clothing
apps
Everything
Every asset type in one list
Forum
Learn
Documentation
rocket_launch
Getting Started
docs
Documentation
api
API Reference
Resources
school
Tutorials
manage_search
Code Search
Get s&box
Sign in with Steam
Api
Classes
Table
chevron_left
Classes
class
Table
Constructors
functions
Table
Properties
data_object
Align
data_object
Columns
data_object
Cookie
data_object
Resizable
data_object
SortColumn
data_object
SortDescending
Methods
functions
SetProperty
functions
Tick
Static Fields
crop_din
MinimumWidth
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.