Class CloseEventArgs
Provides arguments for the Closed event, which is triggered after the dialog has been closed.
Inheritance
Namespace: Syncfusion.Blazor.Popups
Assembly: Syncfusion.Blazor.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.
Container
Gets the container element of the dialog.
Declaration
public DOM Container { get; set; }
Property Value
Type | Description |
---|---|
DOM | A DOM object representing the container. |
Remarks
This is the parent element that contained the dialog before it was closed.
Element
Gets the root DOM element of the dialog.
Declaration
public DOM Element { get; set; }
Property Value
Type | Description |
---|---|
DOM | A DOM object for the dialog element. |
Remarks
This property provides access to the dialog's element even after it has been removed from the visible DOM.
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.