SweetAlert - An alert replacement

added by Robert Waggott
10/9/2014 2:38:35 PM


Nice looking javascript HUD


Robert Greyling
10/9/2014 5:33:59 PM
Hmm, wondering what it would take to modify so that any number of configurable options were available? For example, sometimes you need options like "Yes", "No", "Maybe Later" - each of which does something different.

JavaScript Kicks
10/9/2014 5:34:56 PM
We'll see if the author can come along and answer that - doesn't look like it would be tough on the surface.

Bob Senoff
10/9/2014 8:44:41 PM
There's possible scope here for a mini wizard type interface where a bunch of questions are asked with through (next) clicks and a final output. Would make having to build them from scratch in framework X much easier. Something with proper flow control

Robert Greyling
10/9/2014 8:48:12 PM
Hmm, yeah, I've built a few of those in my time, would be great if you could just drop something like this is to cover mini-survey or user preferences and things like that.

J Hall
10/10/2014 11:52:45 PM
Nice and simple API, but I wish the configuration object was a bit more comprehensive. For example, could there be a key for setting the background and text color? Also the current text attribute does not except HTML markup, never mind Angular template directives :)

J Hall
10/10/2014 11:58:58 PM
I'm also finding this helpful: var say = swal || alert; say("Here's a message!");