Skip to content
Wrappers for JavaScript alert(), confirm() and other flexible dialogs using Twitter's bootstrap framework
Branch: master
Clone or download
tiesont Updated npm ignore
Slight version bump for fixing npm publish
Latest commit 767a886 Mar 7, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
build Updates to version 5.0 Feb 27, 2019
dist
src Updates to version 5.0 Feb 27, 2019
tests Updates to version 5.0 Feb 27, 2019
.gitignore Adds ignore rule for zip archive Feb 27, 2019
.jshintrc
.npmignore
.travis.yml Updates to version 5.0 Feb 27, 2019
CHANGELOG.md Fixes unit tests Feb 26, 2019
CONTRIBUTING.md revise locales wording Dec 17, 2013
Gruntfile.js Updates to version 5.0 Feb 27, 2019
LICENSE.md Update LICENSE.md Feb 27, 2019
README.md
bower.json Fixes unit tests Feb 26, 2019
composer.json Updates to v5 Feb 25, 2019
header.txt
karma-base.conf.js Updates to version 5.0 Feb 27, 2019
karma.conf.js
package-lock.json
package.json Updated npm ignore Mar 7, 2019

README.md

Bootbox - Bootstrap powered alert, confirm and flexible dialog boxes

Please see http://bootboxjs.com for full usage instructions, or head over to http://paynedigital.com/bootbox for the original writeup about the project.

Contact

Gitter

The easiest thing is to find me on twitter @makeusabrew.

Contributing

Please see the CONTRIBUTING file for guidelines.

Running Tests Build Status

Tests are run using Karma using the Mocha test adapter. To run the tests yourself, simply run npm install within the project followed by npm test. Please note that this will require PhantomJS being installed and in your path - if it is not, you may run the tests and capture browsers manually by running karma start from the root of the project.

The project is also hosted on Travis CI - when submitting pull requests please ensure your tests pass as failing requests will be rejected. See the CONTRIBUTING file for more information.

A note on Bootstrap dependencies

Bootbox 5.0.0 is the first release to support Bootstrap 4.0.0.

Bootbox 4.0.0 is the first release to support Bootstrap 3.0.0.

Bootbox 3.3.0 is the last release to support Bootstrap 2.2.x.

Much more dependency information can be found on the Bootbox website.

Latest Release: 5.0.0

  • Updates Bootbox to be compatible with both Bootstrap 4 and Bootstrap 3.
  • Pulls button locale options to separate file
  • Various bugfixes

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 the select input type)
  • 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)

For a full list of releases and changes please see the changelog.

License

(The MIT License)

Copyright (C) 2011-2019 by Nick Payne nick@kurai.co.uk

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE

You can’t perform that action at this time.