public class UnloadEvent extends com.vaadin.flow.component.ComponentEvent<UnloadObserver>
beforeunload event happening in the client-side.
Can optionally prompt the user before leaving the page.source| Constructor and Description |
|---|
UnloadEvent(UnloadObserver source,
boolean attempted)
Creates a new event using the given source and indicator whether the
event originated from the client side or the server side.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isBecauseOfQuerying()
Checks whether or not the event has been fired in response to querying the user on
beforeunload browser event. |
getSource, isFromClient, unregisterListenertoStringpublic UnloadEvent(UnloadObserver source, boolean attempted)
source - the source componentattempted - when true, the event is fired in response to querying before unloading; false otherwise.Copyright © 2024 Miki. All rights reserved.