Row labels, ie "vertical header"? Is it possible?

Row labels, ie "vertical header"? Is it possible?

tortitudotortitudo Posts: 1Questions: 1Answers: 0

I am creating a table that displays a weather forecast for the next 10 days. It is natural that columns represent days, and rows represent weather variables such as temperature.

Therefore, the dates should be put as column headers, but how can I "label" rows? Do I really have to add the labels as pieces of data? I don't like this because:
- the labels are not data and should be logically separate
- labels and data should be visually separate, not share the same background
- I have to use code to handle the empty cells at the top left of the table

I have highlighted the problem areas in the image. I have no idea how to google or search for this. What are my options?

p.s. This library is so amazing and truly inspiring. And the examples, manual and forums are so good. My mind is blown at least once every day I'm using it. For example my mind was just blown because copy-pasting an image into this editor works perfectly.

Answers

  • colincolin Posts: 15,143Questions: 1Answers: 2,586

    Hi @tortitudo ,

    Yep, that first column is still a column in the table, so has no special meaning - there isn't a concept of a header/title column. You could add the tags in the code in createdRow, or if you're using a table from the DOM, ensure it's there when the table is initialised.

    Cheers,

    Colin

This discussion has been closed.