Skip to content

Instantly share code, notes, and snippets.

@makeusabrew
Last active May 7, 2018 01:05
Show Gist options
  • Save makeusabrew/6339916 to your computer and use it in GitHub Desktop.
Save makeusabrew/6339916 to your computer and use it in GitHub Desktop.
Bootbox v4.0.0 defaults
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"
});
@chrislowles
Copy link

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment