SweetAlert2 Pro

Theme selection

Event Driven

On the "Confirm" or "Delete" action, dynamic built-in events are executed. Be aware that the close action is treated the same as the cancel event.

Confirm
Action is triggered after the user confirms in case there is no inline submit action.

Cancel
In case the user cancels or closes the confirmation box.

In this.data, you can find the following information:

    action: {
        isConfirmed: true
        isDenied: false
        isDismissed: false
        value: true
    },
    message: null,
    title: "Confirm main message title!"
    icon: "success"
Title, message, and icon can be hooked in for the next action if needed.

With the following settings, we can decide if event data will replace (Title, Message, and Icon)

{
    "disableEventData": {
       "disableTitle":true,
       "disableMessage":true,
       "disableIcon":false
    }
}
Or to disable all, we can also use the short version :
{
    "disableEventData":true
}