data-request-cancel
Specifies JavaScript code to execute if the user aborts the request or cancels it via a confirmation dialog.
html
<button
data-request="onDelete"
data-request-confirm="Are you sure you want to delete this?"
data-request-cancel="alert('You cancelled the action')">
Delete This Record!
</button>