It looks like we forgot to add setters to the Properties object

Here's a workaround:

static native Properties createRedProperties() /*-{
  return { 'style' : 'background-color: red' };
}-*/;

...

data.setCell(i, 1, value, createRedProperties(), null);

On May 18, 1:01 am, VizBoy <[email protected]> wrote:
> Hi,
>
> As you can see under custom 
> properties:http://code.google.com/apis/visualization/documentation/gallery/table...
>
> You can use calls like
>
> dataTable.setCell(22, 2, 15, 'Fifteen', {style: 'font-style:bold;
> font-size:22px;'});
>
> This works fine in JavaScript. Do you need to be able to do it through GWT?
> This has nothing to do with formatters by the way, which change much more
> than the style and do it automatically, i.e., you do not specify your own
> css.
>
> - VizBoy.
>
> On Wed, May 13, 2009 at 2:58 PM, imgnik <[email protected]> wrote:
>
> > hi all,
>
> > i know this is kinda newbie question.
>
> > but can someone kindly tell me how to do it ?
>
> > in gwt, there is no formatter.
>
> > i tried this but it's not working. data.setCell(i, 1, value,
> > "background-color: red", null);
>
> > regards
> > imgnik
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to