natancabral / pdfkit-table

Helps to draw informations in simple tables using pdfkit. #server-side. Generate pdf tables with javascript (PDFKIT plugin)
MIT License
90 stars 55 forks source link

[Feature Request] Round Headers #94

Open weebao opened 1 month ago

weebao commented 1 month ago

It would be nice if we could change our headers' border radius.

From: image

To: image

wilmanbarrios commented 3 days ago

Hey 👋🏼 @weebao

I'm trying to add the striped effect, but I'm unable to see the cell content, the rectangle gets in front of the text and I don't know how to put the text forward.

Searching through the issues I found this one and, I can see that you have a table with the striped effect.

I wanted to ask, did you manage to achieve the striped effect or was it just to showcase the border radius?

weebao commented 3 days ago

Yeah I did. The way I did it was really manual though. I just used map and add backgroundColor for the odd rows to be gray lol. Couldn't find a better way 😅