2017 © Pedro Peláez
 

library sweetalert

A beautiful replacement for JavaScript's alert for Bootstrap.

image

bootstrap/sweetalert

A beautiful replacement for JavaScript's alert for Bootstrap.

  • Friday, March 20, 2015
  • by royopa
  • Repository
  • 1 Watchers
  • 0 Stars
  • 931 Installations
  • CSS
  • 0 Dependents
  • 0 Suggesters
  • 2555 Forks
  • 0 Open issues
  • 1 Versions
  • 57 % Grown

The README.md

If you are looking for the non-Bootstrap version refer to the original SweetAlert project., (*1)

SweetAlert for Bootstrap

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

Usage

On how to use these alerts, read the docs from the original SweetAlert project., (*3)

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., (*4)

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., (*5)

Development

$ npm install
$ grunt

The Versions

20/03 2015

dev-master

9999999-dev http://lipis.github.io/bootstrap-sweetalert/

A beautiful replacement for JavaScript's alert for Bootstrap.

  Sources   Download

MIT

by Panayiotis Lipiridis

modal alert