Skip to content

Add enableBackdropDismiss to LoadingController #7975

@imgx64

Description

@imgx64

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.).

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions