question

Upvotes
Accepted
39 6 8 11

Is it possible to customize JavaScript Alert in EIKON Container?

Hi Team,

Any JavaScript alert in EIKON displays JavaScript Alert in the Title bar.

Is it possible to remove that from Title bar/ provide custom tags in Title bar?

Also if the alert content is larger, it is not displayed properly in the Alert box. The alert box is of fixed size.

Is it possible to increase the size of the JavaScript Alert box?

eikoneikon-app-studiojavascript
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
Accepted
4.6k 26 7 22

Please refrain from using javascript alerts in the production applications.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
21.8k 57 14 21

@ayerajothi A better mechanism would be to use CSS/Javascript to display an emulated modal dialog box. Many standard libraries provide this functionality and allow customization. E.g Using dialog box with jQuery or bootstrap.

The Eikon way of providing notifications would be to invoke JET.toast() method. See JET documentation within Eikon for more details.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.