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.

Set table width of columns individually

See original GitHub issue

I’m familiar with these two options in the API: table.setFixedWidthLayout(); table.setWidth(WidthType.PERCENTAGE, '100%');

However, what should I do if I want to set the width of specific columns?

Example: I want a table with two columns; the first one to have a width of 25% and the second one to have a width of 75%.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
dolanmiucommented, Feb 22, 2019

Unfortunately not

I am still active don’t worry.

Just been spending my time on another open source project at the moment

Trying to learn graph theory and implementing it.

I will be on docx next week after this graph piece is done!

image

1reaction
emilpscommented, Feb 21, 2019

Have you gotten any further on this issue?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Set the table column width constant regardless of the amount ...
You need to set the cell width (either th or td worked, I set both) AND set the table-layout to fixed . For...
Read more >
Changing Column Width - The complete HTML5 tutorial
In order to do this, we use the <col> element. This element is to be placed between the <table> tag and the <thead>...
Read more >
Resize a table, column, or row - Microsoft Support
To change the width to a specific measurement, click a cell in the column that you want to resize. On the Layout tab,...
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 >
columns.width - DataTables
Column width in tables depends upon many properties such as cell borders, table borders, the border-collapse property, the content of the table and...
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