tinytable icon indicating copy to clipboard operation
tinytable copied to clipboard

Feature Request with Col and Span Headers?

Open bsgallih12 opened this issue 11 months ago • 2 comments

Hello!

I recently came across a table like this. Is there a way to format a tinytable object such that the col header merges with the spanner to get the look in this table? And same with the bottom for the totals? I think I can get the bottom ones to work with the span col option in the style_tt() function but I am less sure about the col header one

Image

bsgallih12 avatar May 13 '25 13:05 bsgallih12

Yes, that's definitely something I'd like to implement but it will be quite a bit of work. Will let you know if/when I have a prototype.

vincentarelbundock avatar May 13 '25 15:05 vincentarelbundock

Sounds great. Thanks for this package btw. It's my go to for basically any table I make

bsgallih12 avatar May 13 '25 23:05 bsgallih12

I added your example to the vignette. It's possible to achieve with spans, but there should be a better way. I'll close this and open a more targetted issue with the specific feature I have in mind.

vincentarelbundock avatar May 26 '25 01:05 vincentarelbundock

https://vincentarelbundock.github.io/tinytable/vignettes/style.html#spanning-cells-merging-cells

vincentarelbundock avatar May 26 '25 01:05 vincentarelbundock