-
Notifications
You must be signed in to change notification settings - Fork 382
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
resizable/draggable.stop callback should be able cancellable #14
Labels
Comments
Hi @nghiado, |
Hi @nghiado , |
Thanks @tiberiuzuld, will try this weekend. |
Can you please provide an example on how this callback should look like with the posibility to cancel it? |
Hi @PeterSeifert , vm.options.draggable.stop = areYouSureCallback;
function areYouSureCallback(item, itemComponent, event){
return new Promise(function(resolve, reject){
/// do your stuff here
});
} Thanks, |
Thank you, @tiberiuzuld. This helped me. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Can you support promise/cancellable for the stop callback?
A simple use case is users want to rearrange the widget position but we want their confirmation(via popup dialog) before apply new position.
The text was updated successfully, but these errors were encountered: