-
-
Save DavidePastore/466dac37569e8e907a73f80ea7dfa167 to your computer and use it in GitHub Desktop.
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({ | |
message: "I am a custom dialog", | |
title: "Custom title", | |
buttons: [ | |
{ | |
key: "success", | |
label: "Success!", | |
className: "btn-success", | |
callback: function() { | |
Example.show("great success"); | |
} | |
}, | |
{ | |
key: "danger", | |
label: "Danger!", | |
className: "btn-danger", | |
callback: function() { | |
Example.show("uh oh, look out!"); | |
} | |
}, | |
{ | |
key: "main", | |
label: "Click ME!", | |
className: "btn-primary", | |
callback: function() { | |
Example.show("Primary button"); | |
} | |
} | |
] | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment