Skip to content

Instantly share code, notes, and snippets.

@rasmuschristensen
Created March 4, 2016 10:10
Show Gist options
  • Save rasmuschristensen/a7ff598d30a8c024c5d4 to your computer and use it in GitHub Desktop.
Save rasmuschristensen/a7ff598d30a8c024c5d4 to your computer and use it in GitHub Desktop.
Changing the width of bootbox dialog
// 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