Hey,
Loving the project, but it could really use the possibility to alert custom HTML - not just text inside a
.
Good job so far!
I think that it is not a popup plugin, just only custom alert.
@luciusodio I see. Well, it would make a kickass popup plugin as well!
Once you start adding your own HTML, I'd say it's better to just write your own customized plugin that fits your specific needs. As @luciusodio stated, SweetAlert is intended for short simple messages only. :)
@t4t5 I would also suggest you consider removing the escapeHtml directive, at least for the text part of the alert. This would let developers style their notifications with <b> tags and others. That's a big plus compared to the default javascript alert.
I would also add that the JavaScript alert() function allows you to pass in /n for line breaks. So it does allow some formatting. If there was a way of doing some very basic formatting that would be a big plus.
I customized for put an input type text in the alert, but i can't select the element for write. What can i do for solve this ?
Lazy way to do it :v:
swal("Cancelled", "Replace this title", "error");
$(".sweet-alert h2").html("With<br>this..");
Most helpful comment
Lazy way to do it :v: