PanelComponentclass

object→Component→PanelComponent
Namespace
Sandbox
Assembly
Sandbox.Engine
Declaration
public abstract class Sandbox.PanelComponent : Sandbox.Component

Constructors1

Showing 1 constructors

Methods13

Showing 13 methods

public void AddClass(string className)PUBLIC

ParameterTypeDescription
classNamestring—
Returns:void—

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

ParameterTypeDescription
classNamestring—
funcFunc<bool>—
Returns:void—

protected virtual int BuildHash()PROTECTEDVIRTUAL

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.

Returns:int—

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

Gets overridden by .razor file

ParameterTypeDescription
vRenderTreeBuilder—
Returns:void—

protected virtual string GetRenderTreeChecksum()PROTECTEDVIRTUAL

Gets overridden by .razor file

Returns:string—

public bool HasClass(string className)PUBLIC

ParameterTypeDescription
classNamestring—
Returns:bool—

protected virtual void OnStart()PROTECTEDVIRTUALLIFECYCLE

Returns:void—

protected virtual void OnTreeBuilt()PROTECTEDVIRTUAL

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

Returns:void—

protected virtual void OnTreeFirstBuilt()PROTECTEDVIRTUAL

Called when the razor ui has been built.

Returns:void—

public void RemoveClass(string className)PUBLIC

ParameterTypeDescription
classNamestring—
Returns:void—

public void SetClass(string className, bool enabled)PUBLIC

ParameterTypeDescription
classNamestring—
enabledbool—
Returns:void—

public void StateHasChanged()PUBLIC

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

Returns:void—

Properties1

Showing 1 properties

On this page