BeforeUnload
Easy way to add exit verification dialog to your Vaadin Application
Offers simple one line API to define verification dialog shown to user when user is trying to exit or reload page. Can be used to warn if user has any unsaved changes. When changes are save, you can disable dialog with simple one liner.
Sample code
... user does some changes ... BeforeUnload.setExitVerification("You have some unsaved changes. Are you sure you want to exit?"); ... changes are saved ... BeforeUnload.unsetExitVerification();
Links
Compatibility
Was this helpful? Need more help?
Leave a comment or a question below. You can also join
the chat on Discord or
ask questions on StackOverflow.
Version
disablePermanently API for client side by Benedek Herold
- Released
- 2017-07-13
- Maturity
- BETA
- License
- Apache License 2.0
Compatibility
- Framework
- Vaadin 8.0+
- Vaadin 7.1+ in 0.1.0
- Browser
- Firefox
- Opera
- Safari
- Google Chrome
- iOS Browser
- Android Browser
- Internet Explorer
- Windows Phone
- Microsoft Edge
BeforeUnload - Vaadin Add-on Directory
Easy way to add exit verification dialog to your Vaadin ApplicationIssue Tracker
Source Code
Author Homepage
BeforeUnload version 0.1.0
null
BeforeUnload version 0.2.0
Adds client side API for disabling exit verification. Can be eg. used when force reloading page after connection error.
https://github.com/alump/BeforeUnload/wiki/How-to-disable-verification-dialog-when-connection-error
FYI, modern browsers do not anymore support custom messages, but dialog itself is still shown, with default confirmation message.
BeforeUnload version 0.3.0
0.3.0 version is now for Vaadin 8. As modern browsers do not anymore show the message given, has API been simplified to just have enabled / disabled actions. For Vaadin 7 users, use 0.2.x versions.
BeforeUnload version 0.3.1
disablePermanently API for client side by [Benedek Herold](https://github.com/Hedath)