You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Radek Terber <te...@b2bcentrum.cz> on 2010/04/29 14:17:44 UTC

Add custom CSS class to each TH element of grid

Hi all

I need add my custom CSS class to each TH element within table rendered 
by the Grid component, but I didn't find any method how to do it simply.
Is there any way (as simply as possible) how to do it ? Does (for 
example) any grid's or grid model's parameter such parameter?

Thanks.



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Res: Add custom CSS class to each TH element of grid

Posted by Everton Agner <ev...@yahoo.com.br>.
Well, it's not exactly what you've asked, but the Grid component renders a table with a CSS class calles "t-data-grid", so you could do something like:


table.t-data-grid thead tr th{
    ...
}



But, about parameters, I guess you could only override the default "t-data-grid" CSS class by the "class" parameter in the Grid component... Or define a different rowClass CSS class via "rowClass" parameter.

- Everton



________________________________
De: Radek Terber <te...@b2bcentrum.cz>
Para: users@tapestry.apache.org
Enviadas: Quinta-feira, 29 de Abril de 2010 9:17:44
Assunto: Add custom CSS class to each TH element of grid

Hi all

I need add my custom CSS class to each TH element within table rendered by the Grid component, but I didn't find any method how to do it simply.
Is there any way (as simply as possible) how to do it ? Does (for example) any grid's or grid model's parameter such parameter?

Thanks.



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org