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)
No results match this filter.
Metadata
| Field | Value |
|---|---|
| Namespace | Sandbox.UI |
| Type | class |
| Assembly | Sandbox.Engine |
| Doc ID | T:Sandbox.UI.PanelRenderTreeBuilder |