data-request-confirm
Specifies a confirmation message. A confirmation dialog is displayed before the request is sent. If the user clicks the Cancel button the request isn't sent.
Request a confirmation when the Delete button is clicked before the request is sent.
html
<button
data-request="onDelete"
data-request-confirm="Are you sure?">
Delete
</button>