Thanks for pointing this out. This adds class name to colgroup col, where only limited subset of CSS properties is allowed (http://www.w3.org/TR/CSS2/tables.html#columns). Unfortunately text-align is ignored when set on <COL> element. Anyway, addColumnStyleName() requires additional index over added columns. A typical use case for this scenario is: create table displaying row data from the database, displaying first column is ID number right aligned, next column is NAME text centered etc.. While CellTable API defines addColumn(Column), specifying additional style properties on added column would require to maintain additional column index property to reference currently added column.
>From my point of view the column style name is clearly a property of Column class. With regards Lukas Herman On 10 lis, 19:36, John LaBanca <[email protected]> wrote: > Can you use CellTable#addColumnStyleName() to add the text-align property to > the col element for the column? > > Thanks, > John LaBanca > [email protected] Wed, Nov 10, 2010 at 11:01 AM, Lukas Herman > <[email protected]> wrote: > > Hello, > > is there any way to set text-align property on CellTable column? The > > current CellTable code allows only static cellStyle to be applied to > > tdClasses. > > I would expect an optional Column class cellStyle property, which > > would be appended to tdClasses during rendering. > > > -- > > You received this message because you are subscribed to the Google Groups > > "Google Web Toolkit" group. > > To post to this group, send email to [email protected]. > > To unsubscribe from this group, send email to > > [email protected]<google-web-toolkit%2Bunsubs > > [email protected]> > > . > > For more options, visit this group at > >http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" 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-web-toolkit?hl=en.
