You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by "D. R." <d....@googlemail.com.INVALID> on 2019/03/05 05:23:49 UTC
Trigger Alert from javascript
Hi,
we want to trigger an t5-Alert from javascript, how can we do that?
Kind regards
David
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Trigger Alert from javascript
Posted by "D. R." <d....@googlemail.com.INVALID>.
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: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org