You need to opt-in by passing -generateJsInteropExports to the GWT compiler though
On Sunday, September 15, 2024 at 9:53:57 AM UTC+2 [email protected] wrote: > Yes, you can do all this. I'm not sure what your question is. Maybe the > JsInterop docs will help: > https://www.gwtproject.org/doc/latest/DevGuideCodingBasicsJsInterop.html > > On Sunday 15 September 2024 at 3:47:39 pm UTC+10 David wrote: > >> I want >> 1. "@JsType(isNative = false, name = "JsEmail", namespace = >> JsPackage.GLOBAL)" generate JS. >> 2. bind "JsEmail" into Window object so I can see Window.JsEmail >> during Chrome inspect. >> 3. In pure js environment, I can use JsEmail.someMethod() directly. >> >> I appreciate your help. >> >> David >> > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/16fa2e3a-5fcc-4792-ae66-2b008f908eb7n%40googlegroups.com.
