Created
July 13, 2021 01:42
-
-
Save siteslave/8e19d330dd0af7683d80610560592854 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// "sweetalert2": "^11.0.17" | |
import Swal, { SweetAlertResult } from 'sweetalert2' | |
var confirm: SweetAlertResult = await Swal.fire({ | |
title: 'ยืนยัน', | |
text: 'ต้องการยกเลิกการจอง ใช่หรือไม่?', | |
icon: 'warning', | |
showCancelButton: true, | |
confirmButtonText: 'ใช่', | |
cancelButtonText: "ไม่ใช่", | |
}); | |
if (confirm.isConfirmed) { | |
// ok | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment