Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optional table title #30

Closed
GoogleCodeExporter opened this issue Sep 1, 2015 · 5 comments
Closed

Optional table title #30

GoogleCodeExporter opened this issue Sep 1, 2015 · 5 comments

Comments

@GoogleCodeExporter
Copy link

An enhancement request for an option that will cause a title to be displayed.

+--------------------------+
|        Neat Example      |
+------------+-------------+
|   Column   | And another |
+------------+-------------+


Original issue reported on code.google.com by chao...@minorcrash.com on 10 May 2013 at 8:13

@GoogleCodeExporter
Copy link
Author

I need this feature desperately. I have been reading through the code base and 
think I can implement it myself if I'm pointed in the right direction regarding 
get_string. There are plenty of examples of adding options.

Original comment by chao...@minorcrash.com on 10 May 2013 at 8:15

@GoogleCodeExporter
Copy link
Author

This is a good suggestion!  Many thanks.

I'll put this in the next release but if you want to hack it in yourself for 
now, I would integrate it into the block of code starting at line 992 (in 
trunk), with the commend "Add header or top of border" above it.

Original comment by luke@maurits.id.au on 10 May 2013 at 8:32

@GoogleCodeExporter
Copy link
Author

I just started work on it. I'll submit a patch when I am done. get_html_string 
will also need to be updated, it looks like.

Original comment by chao...@minorcrash.com on 12 May 2013 at 11:46

@GoogleCodeExporter
Copy link
Author

It is proving more difficult than I first anticipated. What's the proper way to 
get the top rule shown in my diagram without introducing the column dividers? 
And should we wrap the title or expand the size of the table? I would desire 
the latter, but the former appears easier within the current code base.

Original comment by chao...@minorcrash.com on 15 May 2013 at 3:18

@GoogleCodeExporter
Copy link
Author

This is now implemented in trunk.  Just do table.title = "My table" to set the 
title.  If the title is too long, the table size is expanded to accommodate.  
Please feel free to test and give feedback.

Original comment by luke@maurits.id.au on 7 Oct 2013 at 8:48

  • Changed state: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant