API ReferenceSandbox.UI
PanelEventclass
Base `Sandbox.UI.Panel` event. See `Sandbox.UI.Panel.CreateEvent(Sandbox.UI.PanelEvent)`.
object→PanelEvent
Constructors1
Showing 1 constructors
public PanelEvent(string eventName, Sandbox.UI.Panel active = null)
| Parameter | Type | Description |
|---|---|---|
| eventName | string | — |
| active = null | Panel | — |
No results match this filter.
Methods2
Showing 2 methods
public bool Is(string name)
| Parameter | Type | Description |
|---|---|---|
| name | string | — |
Returns:
bool—public void StopPropagation()
Returns:
void—No results match this filter.
Properties6
Showing 6 properties
public string Sandbox.UI.PanelEvent.Button { get; set; }
Returns:
string—public string Sandbox.UI.PanelEvent.Name { get; set; }
Returns:
string—public Sandbox.UI.Panel Sandbox.UI.PanelEvent.This { get; set; }
The panel on which the event is being called. For example, if you have a button with a label.. when the button gets clicked the actual click event might come from the label. When the event is called on the label, This will be the label. When the event propagates up to the button This will be the button - but Target will be the label. This is mainly of use with Razor callbacks, where you want to get the actual panel that created the event.
public float Sandbox.UI.PanelEvent.Time { get; set; }
Returns:
float—public object Sandbox.UI.PanelEvent.Value { get; set; }
Returns:
object—No results match this filter.