GWT Elemental convert elements

495 Views Asked by At

Is it possible to convert a com.google.gwt.dom.client.Event to a elemental.dom.Element? Or vice versa?

Same question for events.

1

There are 1 best solutions below

0
On

Yes, because they represent the same browser types and are not wrappers (extend from JavaScriptObject, or will use JsInterop in Elemental 2); use .cast() or a Java cast.