cells.styles.fontStyle does not work in drawHeaderCell
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
Got it resolved, header row hidden and then the body rows, which i was able to put styles on.