While tables in Views 3 do a great job of allowing us to include the field names as classes for every TD, the table headers (TH's) don't have this capability.

Instead, a view of the source code shows a string of

...

elements. There's no affordance in the Views 3 interface for adding this, either.

This feature was previously available through Semantic Views in Views 6.x, I believe.

Comments

modulist’s picture

Um, that would be <th class="">... </th> elements.

dawehner’s picture

Category: bug » feature

So this is more like a feature request.

merlinofchaos’s picture

Category: feature » bug

I would say class="" is a bug.

And classes on td should be applied to the th as well. I thought i had set that up so that row 0 would be used for tokens there, but maybe I either messed that up or only did it in my head.

dawehner’s picture

It's kind of hard to find it out.

If you want to add classes to the header of the table you have to configure the "Customize label HTML" setting on the field
and add a custom class there.

Once you have set this up you will see the classes.

merlinofchaos’s picture

Oh right! The header is the label when tables are in use!

dawehner’s picture

Component: User interface » Documentation
Category: bug » task

So there could be some documentation about this.

merlinofchaos’s picture

Status: Active » Fixed

Ok, fixed the table template so that it won't print empty class tags.

I'm not really sure that we need additional documentation about this anywhere. The th tag is the label. You do have to add a class to the label if you're going to.

Status: Fixed » Closed (fixed)

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