Class BeforeOpenCloseEventArgs
Provides information about the OnOpen
and OnClose
event callbacks.
Inheritance
Namespace: Syncfusion.Blazor.Inputs
Assembly: Syncfusion.Blazor.dll
Syntax
public class BeforeOpenCloseEventArgs : Object
Remarks
This class contains event data for popup open and close events, allowing you to control whether the operation should proceed.
Constructors
BeforeOpenCloseEventArgs()
Declaration
public BeforeOpenCloseEventArgs()
Properties
Cancel
Gets or sets a value that indicates whether to allow or prevent the popup operation in ColorPicker.
Declaration
public bool Cancel { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Remarks
Set this property to true
in the event handler to prevent the popup from opening or closing.
Element
Gets or sets the ColorPicker popup element reference.
Declaration
public ElementReference Element { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.ElementReference | An Microsoft.AspNetCore.Components.ElementReference that represents the ColorPicker popup element. |
Remarks
This element reference can be used to access the DOM element of the popup for custom operations.
Name
Gets or sets the name of the event being triggered.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string value indicating the event name (e.g., "OnOpen", "OnClose"). The default value is |
Remarks
This property helps identify which specific event is being triggered when using shared event handlers.