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
live now
Game Jam III
Ends
Fri 25 Sep
Theme
One More Round
The jam is running. Build something, or play the entries.
£
50,000
prizepool
View the jam
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
input
Log in with Steam
chevron_left
Change Language
简体中文
English
Русский
Español
Português-Brasil
Deutsch
日本語
Français
Polski
Türkçe
한국어
Pirate
Italiano
ไทย
繁體中文
Українська
Čeština
Nederlands
Magyar
Dansk
Suomi
Svenska
Norsk
Ελληνικά
Română
Български
Tiếng Việt
Bahasa Indonesia
Español-Latinoamérica
العربية
Api
Classes
TreeRow
chevron_left
Classes
class
TreeRow
Constructors
functions
TreeRow
Properties
data_object
Content
data_object
Expander
data_object
Icon
data_object
IconName
data_object
IsRenaming
data_object
Label
data_object
RowIndex
data_object
Text
data_object
Tree
data_object
WantsDrag
Methods
functions
BeginRename
lock
OnClick
lock
OnDoubleClick
lock
OnDrag
lock
OnDragEnd
lock
OnDragEnter
lock
OnDragLeave
lock
OnDragStart
lock
OnDrop
lock
OnMouseDown
lock
OnRightClick
TreeRow
One visible row of a Sandbox.UI.BaseTreeView. Rows are pooled and rebound as the tree scrolls, so anything you add to one must be created once and updated on every bind.
class
Sandbox.UI
.
account_tree
extends
Panel
Sandbox.Engine
build
Constructors
1
TreeRow
(
)
data_object
Properties
10
Content
Panel
Where a row's own controls go - toggles, buttons, badges - added once and updated on every bind. Clicks on them belong to them: they don't select or activate the row.
Expander
IconPanel
The expand/collapse arrow. Hidden on rows without children.
Icon
IconPanel
An optional icon before the label.
IconName
string
Material icon name. Null or empty hides the icon.
IsRenaming
bool
True while the label is swapped for a text entry.
Label
Label
The row's text.
RowIndex
int
Index into the tree's flat row list, or -1 while pooled.
Text
string
The row's label text. Only touches the label when it changes.
Tree
BaseTreeView
The tree this row belongs to.
WantsDrag
bool
Rows drag when the tree says this row can.
functions
Methods
11
BeginRename
(
)
Swap the label for a text entry until enter, escape, or focus loss.
OnClick
(
e
)
OnDoubleClick
(
e
)
OnDrag
(
e
)
OnDragEnd
(
e
)
OnDragEnter
(
e
)
OnDragLeave
(
e
)
OnDragStart
(
e
)
OnDrop
(
e
)
OnMouseDown
(
e
)
OnRightClick
(
e
)
Inheritance
Panel
TreeRow
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.