/**
* Adds an attach listener. The attach listener is called when the Element is attached to a UI.
*/
ListenerRemover Element.addAttachListener(AttachListener attachListener)
/**
* Adds an detach listener. The detach listener is called when the Element is detached from a UI.
*/
ListenerRemover Element.addDetachListener(AttachListener attachListener)
The order should be the same as in Vaadin 7.
The order should be the same as in Vaadin 7.