Hi
I think that it will be a good idea to have a thing like columnStyleClass for a DataTable, which works similar to rowStyleClass.
Now you can access the div and the tr elements with a css. The td is unaccessable. (And this is not the same as the div. Different height).
Hope, that somebody, who is familar with the code can implement this
Btw.: The autoUpdate of the growl in M4 is broken...
Thanks
columnStyleClass for DataTable
PrimeFaces 3.4, Seam Faces 3.0.2.Final, Glassfish v3.1, Mojarra 2.1.10, NetBeans 7.2, Hibernate JPA 2.0, Seam Persistence 3.0.0.Final Theme default HOT-SNEAKS
Hi
Sorry. I forgot my own Question...
The CSS-Class Element will only work, if you know the Position of the Child at compile-time...
<p:column styleClass="..."> affects only the <div>-Element in the Table. But this <div>-Element has not in all cases the same Size as the Cell. So this can't be used if you want to change the Background of the Cell...
With the current Version it is not possible to access a special <td>-Block. Only the <tr> and <div>-Blocks can be accessed...
I hope that it is clear what I mean. (There is a solution, which uses JavaScript and set the css-Class at runtime for each cell. But this is really not a good way.)
Sorry. I forgot my own Question...
The CSS-Class Element will only work, if you know the Position of the Child at compile-time...
<p:column styleClass="..."> affects only the <div>-Element in the Table. But this <div>-Element has not in all cases the same Size as the Cell. So this can't be used if you want to change the Background of the Cell...
With the current Version it is not possible to access a special <td>-Block. Only the <tr> and <div>-Blocks can be accessed...
I hope that it is clear what I mean. (There is a solution, which uses JavaScript and set the css-Class at runtime for each cell. But this is really not a good way.)
-
- Information
-
Who is online
Users browsing this forum: No registered users and 27 guests