0
votes

How to create border in Header? I am using jspdf autotable to create table but cannot find any idea to apply border to header. Is there any hook that can be used to create header border?

1

1 Answers

5
votes

You can use the header styles:

doc.autotable(columns, data, {
    headerStyles: {
        lineWidth: 1,
        lineColor: [255, 0, 0]
    }
});