I would like to make references in native javascript based on names in strings in gwt:
private String reference = "testFunction";
private native void initTool() /*-{
$wnd.reference = function(){
//function action
}
}-*/;
The idea then is that i from javascript should be able to run the method like this:
window.testFunction();
I hope this is possible some how? I havent found anything online explaining this, maybe because i dont know what to search for.
regards