2 ms·
One of the examples shows that they have a single callback function: http://tristanedwards.me/sweetalert http://tristanedwards.me/sweetalert Unfortunately, th
by acdha 12y ago
One of the examples shows that they have a single callback function:
http://tristanedwards.me/sweetalert http://tristanedwards.me/sweetalert
Unfortunately, there's only one function so this isn't useful if you want to run code when the user cancels the dialog:
https://github.com/t4t5/sweetalert/blob/750a0fd72c3beaa6d4d71336290def4d71d3ecd2/lib/sweet-alert.js#L298 https://github.com/t4t5/sweetalert/blob/750a0fd72c3beaa6d4d7...