Class CloseEventArgs
Provides arguments for the Closed event, which is triggered after the dialog has been closed.
Inheritance
Namespace: Syncfusion.Blazor.Toolkit.Popups
Assembly: Syncfusion.Blazor.Toolkit.dll
Syntax
public class CloseEventArgs : Object
Remarks
This event can be used to execute code after the dialog is no longer visible.
Constructors
CloseEventArgs()
Declaration
public CloseEventArgs()
Properties
Cancel
Gets or sets a value indicating whether a subsequent action should be canceled. This property is not typically used in the Closed event.
Declaration
public bool Cancel { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean | A |
Remarks
While this property is available, it generally does not affect behavior as the dialog has already closed.
ClosedBy
Gets a value indicating how the dialog was closed.
Declaration
public string ClosedBy { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String | A |
Remarks
This is useful for logging or analytics to track how users interact with the dialog.
Event
Gets the event arguments that triggered the close action.
Declaration
public EventArgs Event { get; set; }
Property Value
| Type | Description |
|---|---|
| System.EventArgs | An System.EventArgs object. |
Remarks
This provides context on the original user or programmatic action that led to the dialog closing.
IsInteracted
Gets a value indicating whether the dialog was closed as a result of user interaction.
Declaration
public bool IsInteracted { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
|
Remarks
This helps differentiate between a user closing the dialog versus a programmatic close.
Name
Gets the name of the event.
Declaration
public string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String | The event name as a |
Remarks
This property identifies the event that was fired.