Last active
December 21, 2015 16:49
-
-
Save aruld/6336288 to your computer and use it in GitHub Desktop.
Custom modal dialog using bootbox.js
This file contains 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
bootbox.dialog("This message goes into modal body!", | |
[ | |
{ | |
"label": "Cancel", | |
"class": "btn-primary", | |
"callback": function () { | |
bootbox.hideAll(); | |
} | |
}, | |
{ | |
"label": "Delete", | |
"class": "btn-danger", | |
"callback": function () { | |
// handle delete action here | |
} | |
} | |
], | |
{"header": 'Dialog Header', | |
"onEscape": function () {}}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment