Tuesday, September 27, 2016

Re: JsInterop and constants

It can't be a child interface.

On Tuesday, September 27, 2016 at 9:52:47 AM UTC-4, Kirill Prazdnikov wrote:
> or you can move your constants to another class since they are not js visibile...

Thats what am I doing:

@JsType(isNative = true, namespace = JsPackage.GLOBAL)
public interface JsObject {
  @JsProperty int getMyInt();

  interface Const {
    int ONE = 1;
  }
}

--
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