How can i make a specific row bold?
Something like this should work:
doc.autoTable({
html: '#table',
didParseCell: function(cell, data) {
if (data.row.index === 0 || data.row.index === 2) {
cell.styles.fontStyle = 'bold';
}
}
})
I tried it like the following and it worked :
doc.autoTable(cols, data, { createdCell: function(cell, data) { if (data.row.index === 0 || data.row.index === 2) { cell.styles.fontStyle = 'bold'; } } })