How can I do a datatable subclass of my own and integrate the
setRowProperty method?
Le samedi 5 novembre 2011 05:34:37 UTC-4, Riccardo Govoni a écrit :
>
> 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.
>
> On 4 November 2011 14:09, dhartford <[email protected]> wrote:
>
>> Hey all,
>> I'm playing with the GWT-visualization (the GWT code wrapper one, not
>> the raw javascript version) for 1.1.0, and trying to figure out how to
>> programmatically change the color of an org chart box based.
>>
>> Trying these I'm not getting anywhere:
>>
>> data.setProperty(addRow,0,
>> "allowHtml", "true");
>> data.setProperty(addRow,0,
>> "style", "background-color=#000000");
>> data.setProperty(addRow,0,
>> "nodeClass", "myblackcss");
>>
>> I think I want the 'setRow', but that isn't available in the GWT
>> wrapper code atm. How would one accomplish changing the color of one
>> of the org chart boxes?
>>
>> thanks,
>> -D
>>
>> --
>> 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.
>>
>>
>
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-visualization-api/-/sLavFbSd1GQJ.
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.