tabulate icon indicating copy to clipboard operation
tabulate copied to clipboard

Is it possible to show a table title in the border?

Open defigli opened this issue 6 years ago • 1 comments

When showing multiple tables it would be nice to see a table name at the top of the table, e.g. in the upper border. At the moment I embed the table in an outer table and put a string as first row as the title. But then you handle with 2 tables.

defigli avatar Jan 16 '20 06:01 defigli

Currently, the way to do this is definitely hacky - as you say, you can add the title as the first row and apply some formatting tricks.

I think it makes sense to add this as a feature.

  • Be able to set the title for the table
  • Be able to set the position of the title - above or below the table
  • Be able to set the alignment of the title - left, center or right
  • Be able to set the font style and color of the title.

All of this can be added to either the Table class and then it should be easy to add the title.

p-ranav avatar Jan 16 '20 14:01 p-ranav