vue-full-loading icon indicating copy to clipboard operation
vue-full-loading copied to clipboard

Provide Cancel ui element + event

Open batje opened this issue 7 years ago • 2 comments

Would it be possible to (optionally) display a cross in the right upper corner that would trigger an onCancel event?

Use case:

  • User clicks Cancel button/cross
  • onCancel event is invoked
  • Spinner is hidden, overlay stays intact
  • Display 'Are you sure? 'Dialog
  • If user presses 'Yes', full loading is hidden
  • If user presses 'No', spinner reappears and continues spinning away

batje avatar Mar 15 '18 10:03 batje

Hi @batje ,

This package is intended to don't allow any action on the screen until performing a background task.

Showing or hiding the overlay should be programmatically and no with the user interaction.

When do you think it should allow the user to change it?

Edujugon avatar Mar 16 '18 20:03 Edujugon

For example when cancelling an update when the internet connection is really slow. (instead of waiting for the a timeout to happen)

batje avatar Mar 19 '18 12:03 batje