Last active
May 7, 2018 01:05
-
-
Save makeusabrew/6339916 to your computer and use it in GitHub Desktop.
Bootbox v4.0.0 defaults
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.setDefaults({ | |
/** | |
* @optional String | |
* @default: en | |
* which locale settings to use to translate the three | |
* standard button labels: OK, CONFIRM, CANCEL | |
*/ | |
locale: "fr", | |
/** | |
* @optional Boolean | |
* @default: true | |
* whether the dialog should be shown immediately | |
*/ | |
show: true, | |
/** | |
* @optional Boolean | |
* @default: true | |
* whether the dialog should be have a backdrop or not | |
*/ | |
backdrop: true, | |
/** | |
* @optional Boolean | |
* @default: true | |
* show a close button | |
*/ | |
closeButton: true, | |
/** | |
* @optional Boolean | |
* @default: true | |
* animate the dialog in and out (not supported in < IE 10) | |
*/ | |
animate: true, | |
/** | |
* @optional String | |
* @default: null | |
* an additional class to apply to the dialog wrapper | |
*/ | |
className: "my-modal" | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks