<@UAY2A4UBA> I use sweetalert pretty good… <@U5375...
# suitescript
a
@reptar I use sweetalert pretty good… @stalbert my problem with dialog is it does not behave the same way a native alert does… you can’t have prompts waiting for user selection because the code still execute in the background…
m
That will be the same with every third party library. The only way you can get that behaviour is with
window.alert
etc.
☝️ 1
true news 1
a
@michoel I don’t remember from the top of my head right now, but I’m pretty sure I found limitations in
N/dialog
that I did not in sweetalert…
s
is sweetalert supposed to be a play on works like "Suite" alert?
or is its name completely unrelated to netsuite?
m
@stalbert Unrelated to Netsuite
Just a general purpose replacement for window.alert()
There's a sweetalert1 and sweetalert2 run by different developers
👍 1
they both are pretty good
Oh yeah, and one great thing about (at least the original one). You don't need to include any CSS! Which is nice because adding CSS in Netsuite is a bit of a pain (and tends to slow down your UI quite a bit).
j
I like the no jQuery dependency. The danger I find with the standard alert is the browser jumping in and thinking the page is too chatty and letting the user suppress alerts from that site for you
m
Yeah, true that. I've ran into users supressing alerts twice and it's created real issues