PaulNieuwelaar / alertjs

Dialog Builder allows you to create fully customisable dialogs and popups in Dynamics 365.
https://www.magnetismsolutions.com/our-products/alertjs-alert-popup-for-d365
Other
96 stars 38 forks source link

Loading alert (popup) have default OK button #12

Closed sdgmits closed 6 years ago

sdgmits commented 6 years ago

How can we get rid of default OK button for a loading alert? and do NOT show any button.

It does not make sense to give 'OK' button when a process is running behind the scene and Loading alert should go automatically once behind the scene process completed. If OK button is available, one can click on it and not wait for the response to come back,

//Show progress bar Alert.show("Processing", null, null, "LOADING", 250, 150, null, true, null);

2018-03-15_11-53-16

sdgmits commented 6 years ago

@PaulNieuwelaar , I think, I found a solution for this issue with a reference from your comment on another post.

If we use in below way, then OK button wouldn't come by default.

//Show progress bar Alert.show("Processing...", null, [], "LOADING", 250, 150, null, true, null);

Thanks.

PaulNieuwelaar commented 6 years ago

Hi, yup as per documentation, passing an empty array is the correct way to display no buttons. You can also used the showLoading function as well.