Wednesday, April 20, 2016

Re: Struggling with gwt 2.8/JsInterop and jQuery, help please!

Jens,
Thanks .. this seems to work:

====================



@JsType(isNative = true, name = "Checkbox", namespace = "checkbox")
public class SUICheckbox extends JQueryContext {
...
   
 @JsType(isNative = true, name = "Object", namespace = GLOBAL)
    public static class SettingsClass {
        @JsProperty public Functions.Func onChecked;
    }
}



On Wednesday, April 20, 2016 at 3:16:31 PM UTC-7, Jens wrote:
I think your Settings class should have @JsType(isNative = true, namespace = GLOBAL, name = "Object") to make it a JavaScript object literal. 

-- 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 post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment