pdfjspdfjspdf-autotable

JSPdf autotable header border


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?


Solution

  • You can use the header styles:

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