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 Friday, February 10, 2017 at 1:49:15 PM UTC+1, Juan Pablo Gardella wrote:
AFAIK is not possible. See http://stackoverflow.com/questions/36867522/gwt- jsinterop-jstype-property- with-in-name 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.See an example here: http://dmitrybaranovskiy.github.io/ raphael/reference.html# Element.animate How can I wrap this objects?@JsProperty(name = "fill-opacity") does not work.RegardsKenny
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