API ReferenceSandbox.UI
public class Sandbox.UI.PanelEvent
Base `Sandbox.UI.Panel` event. See `Sandbox.UI.Panel.CreateEvent(Sandbox.UI.PanelEvent)`.
Constructors
Showing 1 constructors
public PanelEvent(string eventName, Sandbox.UI.Panel active = null)
Parameters
active: Default: null
No results match this filter.
Methods
Showing 2 methods
public bool Is(string name)
public void StopPropagation()
No results match this filter.
Properties
Showing 6 properties
public string Sandbox.UI.PanelEvent.Button { get; set; }
public string Sandbox.UI.PanelEvent.Name { get; set; }
public Sandbox.UI.Panel Sandbox.UI.PanelEvent.Target { get; set; }
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; }
public object Sandbox.UI.PanelEvent.Value { get; set; }
No results match this filter.
Metadata
| Field | Value |
|---|---|
| Namespace | Sandbox.UI |
| Type | class |
| Assembly | Sandbox.Engine |
| Doc ID | T:Sandbox.UI.PanelEvent |