Created
March 4, 2016 10:10
-
-
Save rasmuschristensen/a7ff598d30a8c024c5d4 to your computer and use it in GitHub Desktop.
Changing the width of bootbox dialog
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
// css | |
.dialogWide > .modal-dialog { | |
width: 80% !important; | |
} | |
// script | |
bootbox.dialog({ | |
className: "dialogWide", | |
title: "Foo", | |
message: "what to say, go wide", | |
buttons: { | |
ok: { | |
disabled: "false", | |
label: "OK", | |
className: "btn-primary", | |
callback: function () { | |
//Your logic here | |
return true; | |
} | |
}, | |
cancel: { | |
label: "Cancel", | |
className: "btn-default", | |
callback: function () { | |
} | |
}, | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment