Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loading alert (popup) have default OK button #12

Closed
sdgmits opened this issue Mar 15, 2018 · 2 comments
Closed

Loading alert (popup) have default OK button #12

sdgmits opened this issue Mar 15, 2018 · 2 comments

Comments

@sdgmits
Copy link

sdgmits commented Mar 15, 2018

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 sdgmits changed the title Progress alert (popup) have default OK button Loading alert (popup) have default OK button Mar 15, 2018
@sdgmits
Copy link
Author

sdgmits commented Mar 15, 2018

@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
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants