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
Api
Components
PanelComponent
chevron_left
Components
class
PanelComponent
Constructors
lock
PanelComponent
Properties
data_object
Panel
Methods
functions
AddClass
functions
BindClass
lock
BuildHash
lock
BuildRenderTree
lock
GetRenderTreeChecksum
functions
HasClass
lock
OnParentChanged
lock
OnStart
lock
OnTreeBuilt
lock
OnTreeFirstBuilt
functions
RemoveClass
functions
SetClass
functions
StateHasChanged
PanelComponent
class
Sandbox
.
account_tree
extends
Component
abstract
Sandbox.Engine
build
Constructors
1
PanelComponent
(
)
data_object
Properties
1
Panel
Panel
The panel. Can be null if the panel doesn't exist yet.
functions
Methods
13
AddClass
(
className
)
BindClass
(
className
,
func
)
BuildHash
(
)
int
When this has changes, we will re-render this panel. This is usually implemented as a HashCode.Combine containing stuff that causes the panel's content to change.
BuildRenderTree
(
v
)
Gets overridden by .razor file
GetRenderTreeChecksum
(
)
string
Gets overridden by .razor file
HasClass
(
className
)
bool
OnParentChanged
(
oldParent
,
newParent
)
OnStart
(
)
OnTreeBuilt
(
)
Called after the tree has been built. This can happen any time the contents change.
OnTreeFirstBuilt
(
)
Called when the razor ui has been built.
RemoveClass
(
className
)
SetClass
(
className
,
enabled
)
StateHasChanged
(
)
Should be called when you want the component to be re-rendered.
Inheritance
Component
PanelComponent
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.