API ReferenceSandbox
PanelComponentclass
Constructors1
Showing 1 constructors
protected PanelComponent()
No results match this filter.
Methods13
Showing 13 methods
public void AddClass(string className)
| Parameter | Type | Description |
|---|---|---|
| className | string | — |
Returns:
void—public void BindClass(string className, System.Func`1<bool> func)
| Parameter | Type | Description |
|---|---|---|
| className | string | — |
| func | Func<bool> | — |
Returns:
void—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.
Returns:
int—protected virtual void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder v)
Gets overridden by .razor file
| Parameter | Type | Description |
|---|---|---|
| v | RenderTreeBuilder | — |
Returns:
void—protected virtual string GetRenderTreeChecksum()
Gets overridden by .razor file
Returns:
string—public bool HasClass(string className)
| Parameter | Type | Description |
|---|---|---|
| className | string | — |
Returns:
bool—protected virtual void OnParentChanged(Sandbox.GameObject oldParent, Sandbox.GameObject newParent)
| Parameter | Type | Description |
|---|---|---|
| oldParent | GameObject | — |
| newParent | GameObject | — |
Returns:
void—protected virtual void OnStart()
Returns:
void—protected virtual void OnTreeBuilt()
Called after the tree has been built. This can happen any time the contents change.
Returns:
void—protected virtual void OnTreeFirstBuilt()
Called when the razor ui has been built.
Returns:
void—public void RemoveClass(string className)
| Parameter | Type | Description |
|---|---|---|
| className | string | — |
Returns:
void—public void SetClass(string className, bool enabled)
| Parameter | Type | Description |
|---|---|---|
| className | string | — |
| enabled | bool | — |
Returns:
void—public void StateHasChanged()
Should be called when you want the component to be re-rendered.
Returns:
void—No results match this filter.
Properties1
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.