Closed
Description
The purpose of this feature is to provide an event before printing a row or cell that the user decides to change the text color or font size or bold the text based on the row/column number or the data in that cell.
doc.table(1, 1, data, headers, {
rowStart: function(e) {
if (17 < e.row && e.row < 36)
doc.setTextColor(255,0,0);
else
doc.setTextColor(0,0,0);
},
cellStart: function(e) {
if (e.data > 80)
doc.setFont(undefined, "bold");
else
doc.setFont(undefined, "normal");
}
});