Is there any way to apply a style to just one row in a table?
i've tried passing in style / class parameters to the columns based on some rules but it seems whatever the style of the column in the first iteration. All subsequent iterations have the same style.
i bascially just want to highlight a row in the table somehow but don't want to do it via javascript..
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks for the reply.
Had a play with the table decorator but it only seems to let you insert HTML directly before and directly after the <tr> tags.
which seems odd as this is of no use?
I've looked through the code and it seems that there is no way of getting into the <tr> tag to provide an inline style / class. I wonder is there any plan to include such functionality?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Is there any way to apply a style to just one row in a table?
i've tried passing in style / class parameters to the columns based on some rules but it seems whatever the style of the column in the first iteration. All subsequent iterations have the same style.
i bascially just want to highlight a row in the table somehow but don't want to do it via javascript..
I think you can create a table's Decorator.
Have a look to finshedRow() in API ...
Thanks for the reply.
Had a play with the table decorator but it only seems to let you insert HTML directly before and directly after the <tr> tags.
which seems odd as this is of no use?
I've looked through the code and it seems that there is no way of getting into the <tr> tag to provide an inline style / class. I wonder is there any plan to include such functionality?
I had a similar issue, I wanted access to the attributes of the <a> tag in a sortable column header and couldn't access it.