We're using AngularJS+MVC5.*. Is there a way to modify the abp.sweet-alert.js to show close button on the pop-up modal?
For example: swal({ title: "Are you sure?", text: "Test message?", type: "info", showCancelButton: true, focusConfirm: false, confirmButtonColor: "#DD6B55", confirmButtonText: "Yes", cancelButtonText: "No", showCloseButton: true }, function (isConfirm) {})
Thank you :ugeek: !
6 Answer(s)
-
0
ASP.NET Zero uses (and ABP supports) SweetAlert v2, not SweetAlert2 that has the showCloseButton option.
-
0
<cite>aaron: </cite> ABP (and ASP.NET Zero) uses SweetAlert v2, not SweetAlert2 that has the showCloseButton option.
Thank you Aaron for the quick response. Hmm.. then it would be tough. is there a way to add the close button to the modal?
-
0
You might be able to hack the events and DOM in JavaScript.
Related issue: https://github.com/t4t5/sweetalert/issues/479
-
0
I managed to hack together a solution: How to add close button in SweetAlert pop up
-
0
This is awesome. Let me try it now! Thank you so much Aaron.
-
0
thanks @aaron nice solution.