s&box docs
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

Methods

Showing 2 methods

public bool Is(string name)

public void StopPropagation()

Properties

Showing 6 properties

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.

Metadata

FieldValue
NamespaceSandbox.UI
Typeclass
AssemblySandbox.Engine
Doc IDT:Sandbox.UI.PanelEvent

On this page