Unable to customize table borders
See original GitHub issueHey, I’m trying to customize table borders.
I’m trying to do it for client-side with the demo #20 (changed add to create Paragraph because it didn’t work too for some reason) and it still doesn’t work.
const table = doc.createTable(4, 4);
table
.getCell(2, 2)
.createParagraph('test')
.Borders.addTopBorder(BorderStyle.DASH_DOT_STROKED, 3, "red")
.addBottomBorder(BorderStyle.DOUBLE, 3, "blue")
.addStartBorder(BorderStyle.DOT_DOT_DASH, 3, "green")
.addEndBorder(BorderStyle.DOT_DOT_DASH, 3, "#ff8000");
It fails on the .Borders
part.
Could anyone help me out with that issue?
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (5 by maintainers)
Top Results From Across the Web
Cannot edit table borders
If you prefer to edit the border, it's recommended to select the table and click Table Design in the ribbon and then click...
Read more >can't change table border colors
In the borders and shading window you need to click on the top and bottom lines again to remove. Click on them again...
Read more >unable to change table border radius css
I'm trying to change my top left and right border radius on my css but its not doing anything, I have tried targeting...
Read more >Can't change borders on my table!
Inspector > Tables > Cell Borders. First select the cell / cells in your Table or select the Whole table > select which...
Read more >Changing table borders, colors, and size
On the editor toolbar, tap Border. · Tap to select which borders of the table you want to edit. · To change the...
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
Ok I will take a look into this.
Seems like there are a lot of issues raised regarding tables, so I will go through a big development session on the Tables feature once I get time
Hey, first of all thanks for the help. Big fan of the repo and would be happy to contribute to it in the future.
I did try to use that specific demo and it didn’t work (as mentioned in the original comment:
changed addParagraph to createParagraph because it didn't work
)Other than that, all code is identical (worth mentioning: is in the browser)