If you are using the JSON format of a DataTable, you can set the 
"className" property in the "p" parameter of the cell, eg:

{"v":5,"f":"$5","p":{"className":"foo"}}

or you can add the className property in javascript:

// set the "className" property on all cells in column 1 of DataTable "data"
for (var i = 0; i < data.getNumberOfRows(); i++) {
    data.setProperty(i, 1, "className", "foo");
}

On Thursday, August 22, 2013 1:25:04 PM UTC-4, Ragini Pandey wrote:
>
> I am pulling the data from the database. How do I set the classname for 
> the columns.
>
> Ragini
>
> On Thursday, 22 August 2013 12:20:34 UTC-4, asgallant wrote:
>>
>> Set the "className" property of each cell in the relevant column, and 
>> assign a width to this class in CSS.  This will fix the width of the column 
>> and cause text to wrap if necessary.
>>
>> On Thursday, August 22, 2013 11:22:20 AM UTC-4, Ragini Pandey wrote:
>>>
>>> Hi,
>>>
>>> How do I make the text in columns wrap if they are big and is there a 
>>> way I can fix the width of columns in table.
>>>
>>> Thanks
>>> Ragini
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to