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.

Unable to customize table borders

See original GitHub issue

Hey, 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:closed
  • Created 5 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
dolanmiucommented, Feb 6, 2019

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

1reaction
GiladFedercommented, Feb 4, 2019

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)

Read more comments on GitHub >

github_iconTop 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 >

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