s&
newspaper
About
info
About s&box
newspaper
Latest News
published_with_changes
Changes
map
Roadmap
monitoring
Metrics
games
Games
sports_esports
Browse Games
rocket
Discover Games
business_center
Workshop
sports_esports
Games
landscape
Maps
chair
Models
texture
Materials
apparel
Clothing
construction
More..
forum
Forum
docs
Docs
docs
Documentation
dashboard
Api Reference
school
Tutorials
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
PanelRenderTreeBuilder
chevron_left
Classes
class
PanelRenderTreeBuilder
search
Methods
functions
AddAttribute
functions
AddAttributeAction
functions
AddAttributeObject
functions
AddAttributeString
functions
AddAttributeWithSetter
functions
AddBind
functions
AddContent
functions
AddLocation
functions
AddMarkupContent
functions
AddReferenceCapture
functions
AddStyleDefinitions
functions
CloseElement
functions
OpenElement
functions
SetRenderFragment
functions
SetRenderFragmentWithContext
PanelRenderTreeBuilder
This is a tree renderer for panels. If we ever use razor on other ui we'll want to make a copy of this class and do the specific things to that.
class
Sandbox.UI
.
Sandbox.Engine
functions
Methods
15
AddAttribute
(
sequence
,
value
)
AddAttributeAction
(
sequence
,
attrName
,
value
)
Handles @onclick=@( () => DoSomething( "boobies" ) )
AddAttributeObject
(
sequence
,
attrName
,
value
)
Handles "style" and "class" attributes..
AddAttributeString
(
sequence
,
attrName
,
value
)
Handles "style" and "class" attributes..
AddAttributeWithSetter
(
sequence
,
value
,
setter
)
AddBind
(
sequence
,
propertyName
,
get
,
set
)
AddContent
(
sequence
,
content
)
Handles text content within an element
AddLocation
(
filename
,
line
,
column
)
Add the current source location. Used to record in which file the element was created.
AddMarkupContent
(
sequence
,
markupContent
)
Add markup to the current element
AddReferenceCapture
(
sequence
,
current
,
value
)
AddStyleDefinitions
(
sequence
,
styles
)
Styles from a style block
CloseElement
(
)
Finish working on this element
OpenElement
(
sequence
,
elementName
)
SetRenderFragment
(
setter
,
builder
)
SetRenderFragmentWithContext
(
getter
,
setter
,
builder
)
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.