question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[REQUEST] minimal table width

See original GitHub issue

hey @willmcgugan, great package!

in Table.add_column method it would be nice to have an actual minimal with option. The documentation says that width argument sets the minimal with for a column, but in fact in my tests it sets a constant width for one. I’d like my column to be at least width wide but expand if there is a longer string to display.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
willmcgugancommented, Oct 18, 2020

I’ve added a min_width to Column and Table to v9.0.0. Please give it a try, its not been battle tested.

0reactions
erezshcommented, Nov 19, 2020

Works for me as well. Should probably go in the docstring, at least.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Minimum width of first table column - Stack Overflow
I've got a varied amount of separate tables (with different headings so they're separate pieces of data). Obviously table columns change their ...
Read more >
table-layout - CSS: Cascading Style Sheets - MDN Web Docs
Table and column widths are set by the widths of table and col elements or by the width of the first row of...
Read more >
Stop Using To Set Table Width In HTML: Here's Why »
The width attribute, now deprecated, was once the correct way to adjust the width of a table's columns. By default, a browser will...
Read more >
tables - Specifying minimal (not fixed) width in tabular - TeX
So I've provided C{} , L{} , and R{} column types for specifying a minimum width, and an Q column type to use...
Read more >
[Table] minimum width for "TableRowColumn" #4247 - GitHub
Description It could be usefull to set the minimum width for a table row column. In this way when we have a large...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found