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!
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | webform_grid_classes.patch | 3.49 KB | quicksketch |
Comments
Comment #1
amir simantov commentedSorry - the link I gave is wrong. The issue is #470762: GRID layout issue : first column width
Comment #2
quicksketchI'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.