BeforeCloseEventArgs
12 Sep 20251 minute to read
Provides information about a BeforeClose event.
Properties
cancel boolean
Defines whether the current action can be prevented.
closedBy string
Returns whether the dialog, is closed by “close icon”, “overlayClick”, “escape” and “user action”
container HTMLElement
Returns the root container element of the dialog.
element Element
Returns the element of the dialog.
event Event
Returns the original event arguments.
isInteracted boolean
Determines whether the event is triggered by interaction.
preventFocus boolean
Gets or sets a value indicating Whether to prevent focus from returning to the previously active element after dialog closure.
target HTMLElement|string
Returns the target element of the dialog.