I would like to have control over the width of columns in the grid rendered table. I am not getting into cross-browser issues, I just need to have classes added to:
- first th (tabke header)
- any other th
- first td
- any other td

Notes:
This is related to another issue (#160121: Increase length 'label' column for components) but is not the same.
If I can get help how to do it myself or where to look the answer for it, please advise me :-) I did not find in grid.inc file where the table headers (the options) are getting attributes - I think they are not).

Thanks guys!

CommentFileSizeAuthor
#2 webform_grid_classes.patch3.49 KBquicksketch

Comments

amir simantov’s picture

Sorry - the link I gave is wrong. The issue is #470762: GRID layout issue : first column width

quicksketch’s picture

Version: 6.x-2.7 »
Status: Active » Fixed
StatusFileSize
new3.49 KB

I've committed the attached patch that adds the class "webform-grid-question" to cells in the first column and "webform-grid-option" to all other cells. Though I've only added this to the 3.x branch, you can accomplish the same thing in the 2.x version by overriding the theme function theme_webform_grid() in your template.php file.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.