Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

TUTORIALVaadin lets you build secure, UX-first PWAs entirely in Java.
Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Calling javascript synchronously by Enver Haase, 1 month ago
javascript component callback when detached ?
Im a using javascript component.
Like this : https://vaadin.com/docs/-/part/framework/gwt/gwt-javascript.html#gwt.javascript.rpc
There is a callback to handle when the state change when fields are modified in java.
// Handle changes from the server-side
this.onStateChange = function() {
//Some code
};
I wonder if there is a way to add a callback function when the component will be detached or destroy by vaadin.
Something like this
this.onDetach = function(){
//My code to properly remove some js features i done
}
Last updated on
Try to define the function as onUnregister
this.onUnregister = function(){
//My code to properly remove some js features i done
}
Last updated on
You cannot reply to this thread.