Directory

← Back

BeforeUnload

Easy way to add exit verification dialog to your Vaadin Application

Author

Contributors

Rating

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();

Compatibility

(Loading compatibility data...)

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.2.0
Browser
Firefox
Opera
Safari
Google Chrome
iOS Browser
Android Browser
Internet Explorer
Windows Phone
Microsoft Edge
Online