s&box docs
API ReferenceSandbox.UI

public class Sandbox.UI.PanelRenderTreeBuilder : Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder

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.

Methods

Showing 19 methods

public virtual void AddAttribute(int sequence, System.Action`1<T> value)

public void AddAttributeObject(int sequence, string attrName, object value)

Handles "style" and "class" attributes..

public void AddAttributeString(int sequence, string attrName, string value)

Handles "style" and "class" attributes..

public void AddAttributeWithSetter(int sequence, object value, System.Action`1<T> setter)

public virtual void AddBind(int sequence, string propertyName, System.Func`1<T> get, System.Action`1<T> set)

public virtual void AddContent(int sequence, T content)

Handles text content within an element

public virtual void AddLocation(string filename, int line, int column)

Add the current source location. Used to record in which file the element was created.

public virtual void AddMarkupContent(int sequence, string markupContent)

Add markup to the current element

public virtual void AddReferenceCapture(int sequence, T current, System.Action`1<T> value)

public virtual void AddStyleDefinitions(int sequence, string styles)

Styles from a style block

public virtual void CloseElement()

Finish working on this element

public virtual void SetRenderFragment(System.Action`2<T,Microsoft.AspNetCore.Components.RenderFragment> setter, Microsoft.AspNetCore.Components.RenderFragment builder)

public virtual void SetRenderFragmentWithContext(System.Func`2<T,Microsoft.AspNetCore.Components.RenderFragment`1<U>> getter, System.Action`2<T,Microsoft.AspNetCore.Components.RenderFragment`1<U>> setter, Microsoft.AspNetCore.Components.RenderFragment`1<U> builder)

Metadata

FieldValue
NamespaceSandbox.UI
Typeclass
AssemblySandbox.Engine
Doc IDT:Sandbox.UI.PanelRenderTreeBuilder

On this page

Methodspublic virtual System.Void AddAttribute(System.Int32 sequence, System.Action`1<T> value)public System.Void AddAttributeAction(System.Int32 sequence, System.String attrName, System.Action value)public System.Void AddAttributeAction(System.Int32 sequence, System.String attrName, System.Func`1<System.Threading.Tasks.Task> value)public System.Void AddAttributeObject(System.Int32 sequence, System.String attrName, System.Object value)public System.Void AddAttributeString(System.Int32 sequence, System.String attrName, System.String value)public System.Void AddAttributeWithSetter(System.Int32 sequence, System.Object value, System.Action`1<T> setter)public virtual System.Void AddBind(System.Int32 sequence, System.String propertyName, System.Func`1<T> get, System.Action`1<T> set)public virtual System.Void AddContent(System.Int32 sequence, T content)public virtual System.Void AddLocation(System.String filename, System.Int32 line, System.Int32 column)public virtual System.Void AddMarkupContent(System.Int32 sequence, System.String markupContent)public virtual System.Void AddReferenceCapture(System.Int32 sequence, T current, System.Action`1<T> value)public virtual System.Void AddStyleDefinitions(System.Int32 sequence, System.String styles)public virtual System.Void CloseElement()public virtual System.Void OpenElement(System.Int32 sequence, System.String elementName, System.Object key = null)public virtual System.Void OpenElement(System.Int32 sequence, System.String elementName)public virtual System.Void OpenElement(System.Int32 sequence, System.Object key)public virtual System.Void OpenElement(System.Int32 sequence)public virtual System.Void SetRenderFragment(System.Action`2<T,Microsoft.AspNetCore.Components.RenderFragment> setter, Microsoft.AspNetCore.Components.RenderFragment builder)public virtual System.Void SetRenderFragmentWithContext(System.Func`2<T,Microsoft.AspNetCore.Components.RenderFragment`1<U>> getter, System.Action`2<T,Microsoft.AspNetCore.Components.RenderFragment`1<U>> setter, Microsoft.AspNetCore.Components.RenderFragment`1<U> builder)Metadata