Possibility to style a table footer cell?

Hi,

I use already a CellStyleGenerator to style the cells of a table depending on the content (i.e. red for negative numbers). Now I’m using the table footer to show the sum of a column containing numbers. When this sum is negative, I would like to show it in red.

How can I achieve this?

Andreas

I am afraid this is not possible without modifications to client-side code. If you want, you could create an
enhancement ticket
.

Henri,

thanks for your answer. The enhancement ticket is created
here
.

Are there any other solution to change the Css of footer and header of a table ?
We really need this fonctionality in our Web application … :frowning:

want to know also.

First, you should define the style of the table:

table_results.setStyleName("mynamestyle");

Then, the only thing you should do is:

.v-table-mynamestyle .v-table-footer-container {
    font-weight: bold;
    color: red;
}