question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add enableBackdropDismiss to LoadingController

See original GitHub issue

This 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:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
imgx64commented, Jun 6, 2017

@jgw96 I implemented this. Please see the PR.

0reactions
ionitron-bot[bot]commented, Sep 2, 2018

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found