Unable to set cell's width
See original GitHub issueThere’s no way to set the width of the table-cell
.
The table-cell-properties
have method setWidth(width: string | number, type?: WidthType): TableCellProperties
But maybe you forgot to add this to the table-cell
constructor?
Docx version: 5.0.0-rc6
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
How to Lock Row Height & Column Width in Excel (Easy Trick)
Select all the cells in the worksheet by clicking on the gray triangle at the top-left part of the worksheet. Click on the...
Read more >Excel column width display not working - Microsoft Community
Click the "Format" drop-down menu in the "Cells" group of the "Home" tab. Select the “Column Width and Row Height" option in the...
Read more >Column width option not available in specific worksheets
I have a Excel document with several worksheets. In the February worksheet I can adjust the column width option. I get the double-sided...
Read more >Excel: Can't adjust column width: Troubleshooting steps
Unlocking cells to adjust column width in Excel · Step 1 – Select and interact with your target cell · Step 2 –...
Read more >How To Use Excel To Lock Width and Height in a Spreadsheet
1. Set the width and height · Click on one or more columns. · Navigate to cells section of the home tab. ·...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hey, @Rogers-Development-Services I was facing a similar issue recently, not sure this will help you with this late posting here for someone like me
It worked by using a Fixed layout type like this
const table = new Table({ width: { size: 100, type: WidthType.PERCENTAGE, }, layout:TableLayoutType.FIXED, rows: rows });
Exactly! But we’re not able to set cell width, please tell me that I’m wrong 😃