Есть ли способ установить для каждого слова свой собственный цвет в одной ячейке с помощью jspdf-autotable?
doc.autoTable({
body: rows,
allSectionHooks: true,
willDrawCell: function(data) {
if (data.row.section === 'body') {
// data.cell.raw – always 2 words
// data.cell.text = "green word" + "red word"
...
}
},
});