Trigger Alert from javascript

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Trigger Alert from javascript

D. R.
Hi,

we want to trigger an t5-Alert from javascript, how can we do that?

Kind regards
David


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Trigger Alert from javascript

D. R.
ok, very easy:

include "t5/core/alert" as 'alert' and call:

var alertObject = {
   message: 'hi from javascript',
   severity: 'ERROR', // SUCCESS, INFO, WARN, ERROR
};
alert(alertObject);

Any concerns about that?

Kind regards
David

Am 05.03.19 um 06:23 schrieb D. R.:
> Hi,
>
> we want to trigger an t5-Alert from javascript, how can we do that?
>
> Kind regards
> David
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]