Ads

Wednesday 23 July 2014

Bootbox.js – alert, confirm and flexible dialogs for twitter’s bootstrap framework

Download   Demo


Running Tests Build Status


Tests are run using Karma using the Mocha test adapter. To run the tests yourself, simply run npm installwithin 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.


Building a minified release


The repository no longer contains a minified bootbox.min.js file – this is now only generated for releases. To build your own minified copy for use in development simply run npm install if you haven’t already, followed by grunt uglify. This will generate a bootbox.min.js file in your working directory.


A note on Bootstrap dependencies


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.


Roadmap


The latest major release of Bootbox – 4.0.0 – involved a total rewrite of the internal code and introduced an entirely new public API. It has not re-implemented some functionality from the 3.x series as of yet; this will be addressed in the coming weeks in the form of new minor releases; a task list for 4.3.0 is available - please feel free to add feedback and requests.


There is no new major (e.g. 5.x) release on the roadmap at present.


Latest Release: 4.2.0


  • Add Swedish locale

  • Add Latvian locale

  • Add Turkish locale

  • Add Hebrew locale

  • Add password input type

  • Add textarea input type

  • Add date input type

  • Add time input type

  • Add number input type

  • Support DOM selectors for container argument

  • UMD support

  • Better support on mobile devices

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



Bootbox.js – alert, confirm and flexible dialogs for twitter’s bootstrap framework

No comments:

Post a Comment