Skip to content

Bootbox 5.0

Compare
Choose a tag to compare
@tiesont tiesont released this 27 Feb 19:24
· 181 commits to master since this release
  • Updates Bootbox to be compatible with both Bootstrap 4 and Bootstrap 3.
  • Pulls button locale options to separate file
  • Various bugfixes
  • Updates all npm packages to their latest and greatest.
  • Updates grunt, mostly to enable min file generation.

Prompt

  • Adds new input types for prompt:
    • radio
    • range
  • Adds prompt input constraints for min, max, step, maxlength, pattern, and required
  • Adds pattern option for prompt inputs
  • Allows message option for prompt
  • Allows multiple option for prompt when using inputType set to select
  • Refactors prompt function to use the same dialog factory as alert and confirm.

Dialog options

  • Adds locale option - allows locale to be set on a dialog-by-dialog basis
  • Adds swapButtonOrder option to allow reversing the default button order
  • Adds centerVertical option - adds support for vertically-centered dialogs (requires Bootstrap 4)