Something like (totally untested) might work:
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.
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 firstname.lastname@example.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/372286a2-a3e8-4f0c-b187-66e1a57e6617o%40googlegroups.com.