Add support for row headers

Created on 17 March 2022, over 2 years ago
Updated 13 February 2023, over 1 year ago

Problem/Motivation

For some background on my motivation, please see Ticket #3270149 β†’ .
I'm using tables a lot and some of the have row headers in Bbcode. While HTML has tags that support only column headers (THEAD and friends), HTML tables work fine without them. And my tables are rather small, so the incentive for THEAD & Co, for vertical scrolliing with fixed header and footer, is of no interest. We're not talking humongous spreadsheets here.

I applaud your non-standard and much easier way of specifying tables, I have to recycle a very old joke:

Glory be to the XBBCODE in the highness, but can you add this little feature?

(A long time ago in Computerworld.)

Steps to reproduce

You can't ;-)

Proposed resolution

Please implement an attribute for [table] that allows for row headers. Following this Stack Overflow question, you might want to allow for 2D headers as well:
Tables with row and column headers

Remaining tasks

All of it.

User interface changes

Additional [table] attribute that defaults to the current behavior.

API changes

None.

Data model changes

None.

✨ Feature request
Status

Active

Version

5.0

Component

Default tags

Created by

πŸ‡©πŸ‡ͺGermany lupe_christoph

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡¨πŸ‡­Switzerland cburschka
  • πŸ‡¨πŸ‡­Switzerland cburschka

    Very interesting; I didn't know <th> was usable inside the table this way.

    On the BBCode side, I suppose the simplest way to add this to the current implementation would be to allow declaring the first (or an arbitrary) column as the header via an attribute,

    Unfortunately the module doesn't generate this HTML directly but rather outsources it to Drupal's table renderer. I suppose the next challenge will be to figure out how to get that to turn individual cells into

Production build 0.69.0 2024