Closed invot closed 8 years ago
You can do it with the beforeDismiss()
/ beforeClose()
hooks.
This requires using a custom modal.
You can return a boolean
or Promise<boolean>
.
If you want to do it using the built in presets with a built in plugin (e.g: confirm with bootstrap) you will have to build a custom plugin for that inheriting 99% of the code from the plugin.
This is an expected behaviour, you are changing the modal and it's behaviour.
I'll close this stale issue, please re-open with a comment if it still an issue.
Currently I don't see a way to run a function once a button is pressed in a model window. However, say I want to confirm that a user intends to do an action, I'd like to be able to run something when they confirm.
Currently, there doesn't appear to be a way to do that.