jsPDF-AutoTable icon indicating copy to clipboard operation
jsPDF-AutoTable copied to clipboard

cells.styles.fontStyle does not work in drawHeaderCell

Open balajigraman opened this issue 9 years ago • 1 comments

Hi,

I have a table in jsPDF-AutoTable, where the data is displayed in a different way, the column headers are in odd columns and the actual data in even columns.

fillColor does work though, I am setting it to false for even columns. Any pointers would be of great help.

headerStyles: { fillColor: [248, 248, 248], fillType: "FD", fontSize: 8, textColor: [0, 0, 0], fontStyle: 'normal' }, drawHeaderCell: function(cell, data) { if (cell.raw === 'COMPANY' || cell.raw === 'JOB#' || cell.raw == 'TICKET DATE') { cell.styles.fontStyle = "bold"; } else { cell.styles.fillColor = false; } }, Thanks Balaji

balajigraman avatar Apr 24 '17 22:04 balajigraman

Got it resolved, header row hidden and then the body rows, which i was able to put styles on.

balajigraman avatar Apr 30 '17 03:04 balajigraman