2.0.5 • Published 6 years ago

sweet-alert v2.0.5

Weekly downloads
268
License
pemrouz.mit-licen...
Repository
github
Last release
6 years ago

sweet-alert

image Build Status Coverage Status Browser Results

A beautiful replacement for JavaScript's alert

Usage

In addition, there is a global swal helper since you mostly only want one instance.

State

  • title = '': The main heading to display

  • content = '': Extra HTML to display below the icon

  • type = 'warning': The icon type, can be warning | error | success | working

  • buttons = []: An array of objects representing the buttons to display, in the form of: { text, onClick, type }. onClick is the function to be invoked on clicked (closes the dialog if none omitted) and type is used to make the button primary (different colour).

  • close: Closes the dialog
2.0.5

6 years ago

2.0.4

6 years ago

2.0.3

6 years ago

2.0.2

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.0.1

6 years ago

1.0.0

7 years ago