API ReferenceSandbox
public abstract class Sandbox.PanelComponent : Sandbox.Component
Related Guides
Broader workflow and conceptual references connected to this API.
Constructors
Showing 1 constructors
protected PanelComponent()
No results match this filter.
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 OnParentChanged(Sandbox.GameObject oldParent, Sandbox.GameObject newParent)
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.
No results match this filter.
Properties
Showing 1 properties
public Sandbox.UI.Panel Sandbox.PanelComponent.Panel { get; set; }
The panel. Can be null if the panel doesn't exist yet.
No results match this filter.
Metadata
| Field | Value |
|---|---|
| Namespace | Sandbox |
| Type | class |
| Assembly | Sandbox.Engine |
| Doc ID | T:Sandbox.PanelComponent |