Add enableBackdropDismiss to LoadingController
See original GitHub issueThis is a feature request for Ionic 2. I would like to have enableBackdropDismiss
in LoadingController
, similar to the same feature in AlertController
.
My use case is cancellation. Let’s say the user started a long-running task (such as uploading a file) and the app showed a loading dialog. The user should be able to tap outside the loading dialog to cancel the upload. I can handle the cancellation from the code, but the LoadingController blocks all user interaction.
Another approach for this use case is to add a way to put a spinner inside an Alert dialog. For example, a content
property which can be set to arbitrary HTML (<ion-spinner>
, etc.).
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Add enableBackdropDismiss to LoadingController · Issue #7975
I would like to have enableBackdropDismiss in LoadingController, similar to the same feature in AlertController. My use case is cancellation.
Read more >LoadingController - Ionic API Documentation
Whether to show the backdrop. Default true. enableBackdropDismiss, boolean, Whether the loading indicator should be dismissed by tapping the backdrop. Default ...
Read more >ionic 3 loadingcontroller enable backdrop dismiss not working
i have tried doing that it gives following error: Argument of type '{ content: string; dismissOnPageChange: true; showBackdrop: true; ...
Read more >Mobile Development with Ionic and Vue — Backdrop, Loading ...
The state has the open state. Loading Indicator. We can add a loading indicator with the loadingController . To use it, we can...
Read more >[Solved]-How to prevent modal dismiss when clicked outside ...
[Solved]-How to prevent modal dismiss when clicked outside the modal in Ionic?-angular.js · score:32. Accepted answer. Make use of the enableBackdropDismiss - ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@jgw96 I implemented this. Please see the PR.
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.