GWT-Ext migration to native gwt. Is JavaScriptObjectHelper analog in native gwt v2.4?

StackOverflow https://stackoverflow.com/questions/7651743

  •  06-02-2021
  •  | 
  •  

Domanda

I am working on migrating a large GWT application from gwt-ext to native GWT v2.4. In gwt-ext there is a class called JavaScriptObjectHelper. Is there a corresponding class in the native gwt libraries?

È stato utile?

Soluzione

Some methods from JavaScriptObjectHelper are available elsewhere: JavaScriptObject.createObject() and createArray(), JsArrayand friends, Element's methods (getProperty, getAttribute, etc.), and of course Boolean.valueOf() and similar methods on Integer, Float, Date, etc.

A few other methods have no equivalent though: apply, arrayConvert, convertMapToJavaScriptArray, etc.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top