Thanks Riccardo,
Forgive my ignorance, i tried adding this and unfortunately got:
Uncaught exception escaped
com.google.gwt.core.client.JavaScriptException: (TypeError):
this.setRowProperty is not a function
I did add this just to double-check if it was needed to my .html file,
but it didn't seem to help:
<script type="text/javascript" src="http://www.google.com/
jsapi"></script>
I do have gwt-visualization 1.1.0 in the webapp (and have the normal
charts working), but when trying to use this feature/approach I think
I might be missing a step. I'm more a java/gwt developer than
javascript/native caller, so be gentle with my ignorance, and let me
know of anything I might have missed!
p.s. I'm using the gwt jar from http://gwt-maven-rewraps.googlecode.com/hg/,
since there wasn't one from the normal maven repo's.
-D
On Nov 5, 4:34 am, Riccardo Govoni ☢ <[email protected]> wrote:
> If you want to change the color of all the boxes in the orgchart, you can
> use setNodeClass / setSelectedNodeClass on OrgChart.Options . If you want
> to customize the rendering of a single, specific box you'd have to use the
> GWT equivalent of setRowProperty() , which indeed appears to be missing
> (doh!) , but you can easily fill it with a bit of jsni code, for example by
> adding the following method to a datatable subclass of your own:
>
> public final native void setRowProperty(int rowIndex, String name, String
> value) /*-{
> this.setRowProperty(rowIndex, name, value);
>
> }-*/;
>
> - R.
>
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-visualization-api?hl=en.