提问人:Cristian Acevedo Posada 提问时间:11/10/2023 最后编辑:Cristian Acevedo Posada 更新时间:11/10/2023 访问量:18
如何更改jsPDF中的rowStyle?
How can I change the rowStyle in jsPDF?
问:
问题描述
我想更改非替代行的文本颜色
代码示例
autoTable(doc, {
startY: 120,
head: [["Descripción", "Valor", "Impuestos"]],
body: tableData,
theme: "striped",
styles: { halign: "left",},
columnStyles: {
0: { cellWidth: 80, textColor: [255, 255, 255] },
1: { textColor: [255, 255, 255] },
2: { textColor: [255, 255, 255] },
},
headStyles: { fillColor: [0, 10, 104], textColor: [255, 255, 255] },
alternateRowStyles: { fillColor: [35, 46, 149]},
tableLineColor: [6, 23, 39],
tableLineWidth: 0.1,
});
答: 暂无答案
评论