s&box docs

public abstract class Sandbox.PanelComponent : Sandbox.Component

Broader workflow and conceptual references connected to this API.

Constructors

Showing 1 constructors

Methods

Showing 13 methods

public void AddClass(string className)

public void BindClass(string className, System.Func`1<bool> func)

protected virtual int BuildHash()

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.

protected virtual void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder v)

Gets overridden by .razor file

protected virtual string GetRenderTreeChecksum()

Gets overridden by .razor file

public bool HasClass(string className)

protected virtual void OnStart()

protected virtual void OnTreeBuilt()

Called after the tree has been built. This can happen any time the contents change.

protected virtual void OnTreeFirstBuilt()

Called when the razor ui has been built.

public void RemoveClass(string className)

public void SetClass(string className, bool enabled)

public void StateHasChanged()

Should be called when you want the component to be re-rendered.

Properties

Showing 1 properties

Metadata

FieldValue
NamespaceSandbox
Typeclass
AssemblySandbox.Engine
Doc IDT:Sandbox.PanelComponent

On this page