Jump to content
Search Community

Adding a confirmation to 'delete' event

MDiddy test
Moderator Tag

Recommended Posts

Hi I checked the API looking for this answer but I couldn't find anything specific. Is there a quick way to throw an Alert to confirm/cancel a delete? I tried listening for the delete event and calling event.preventDefault but it appears the TransformEvents aren't cancelable. I know I can setup my own listeners and handlers - just wondering if something's built-in that I'm overlooking. Just want to take a moment to say that this component is just fantastic. The functionality packed into TransformManager is just incredible.



Link to comment
Share on other sites

I'm so glad to hear you're enjoying TransformManager thus far.


There isn't a built-in way to cancel deletion other than to simply set allowDelete to false and then you listen for DELETE/BACKSPACE keypresses yourself, do your confirmation dialog, and then call deleteSelection() if necessary.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...