Something like (totally untested) might work:
class WidgetAdapter extends Widget {
WidgetAdapter(elemental2.dom.Element element) {
setElement(Js.<com.google.gwt.dom.client.Element>uncheckedCast(element));
}
}
But keep in mind that GWT widgets have been rewritten to be J2CL compatible (they use jsinterop internally now and in the future might be changed to use elemental2 dom elements). So it is not an urgent need to switch, unless you really want to.
-- J.
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/372286a2-a3e8-4f0c-b187-66e1a57e6617o%40googlegroups.com.
No comments:
Post a Comment