Friday, February 10, 2017

Re: Native JsTypes with properties containing dashes

Elemental 2 will come with a basic, future-proof API for getting arbitrary properties of objects (future-proof as in, IIUC: this will be JSNI, but there'll be an equivalent for J2Cl; same API but different implementation), so you could use it with a @JsOverlay method.
In the mean time I'd suggest doing the same (@JsOverlay method calling a static helper class that uses JSNI) but with a handwritten JSNI helper.

Actually however, I'd rather suggest using a Map-like API in this case (with predefined constants as keys).

On Friday, February 10, 2017 at 1:49:15 PM UTC+1, Juan Pablo Gardella wrote:

On Fri, 10 Feb 2017 at 06:23 Kenny <kennyfloria@gmail.com> wrote:
Hi,

I am wrapping a js library, this library expects as a parameter for a function an object with properties that contain dashes.


How can I wrap this objects?

@JsProperty(name = "fill-opacity") does not work.

Regards
Kenny


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

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