Skip to content

lipis/bootstrap-sweetalert

This branch is 89 commits ahead of, 156 commits behind t4t5/sweetalert:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

67fdf99 · Dec 8, 2018
Oct 22, 2014
Nov 3, 2014
May 1, 2016
May 2, 2016
May 2, 2016
May 1, 2016
Oct 12, 2014
Apr 27, 2016
Apr 16, 2015
Apr 28, 2016
May 1, 2016
Sep 30, 2014
Dec 8, 2018
May 1, 2016
May 1, 2016
Jul 21, 2016

Repository files navigation

If you are looking for the non-Bootstrap version refer to the original SweetAlert project.

SweetAlert for Bootstrap

npm version Bower version Code Shelter

An awesome replacement for JavaScript's alert() made for Bootstrap.

Usage

On how to use these alerts, read the docs from the original SweetAlert project.

The main difference here is that instead of using the confirmButtonColor you should use the confirmButtonClass. It can take any of the default Bootstrap classes for buttons like: btn-danger, btn-success, etc. The rest of the API remains exactly the same.

Also if you are using Less in your project, then instead of including the *.css files include the sweet-alert.less in your building process. That way it will use the Bootstrap's variables to match your theme perfectly.

Development

$ npm install
$ grunt

Run tests

$ npm install
$ bower install
$ grunt test

About

🍰 A beautiful "replacement" for JavaScript's alert ⛺

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 49.7%
  • HTML 24.0%
  • CSS 23.9%
  • CoffeeScript 2.4%