Jspdf-autotable: How do I remove the bottom border of all rows

Created on 9 May 2020  路  2Comments  路  Source: simonbengtsson/jsPDF-AutoTable

How do I remove the bottom border without removing the left border from all rows

2020-05-09_055209

I want to design it this way

2020-05-09_055035

question

Most helpful comment

Thank you, I think I have found the answer
She is in the "wellDrowCell" event
I took the coordinates of each cell tho I drew a line with this code
doc.line(x1,y1,x2,y2)
x1 -----> data.cell.x;
y1 -----> data.cell.y + data.row.height;
x2 -----> data.cell.x;
y1 -----> data.cell.y
`willDrawCell: (data) => {

if (data.section == "body" && data.column.index != 0) {
     doc.setDrawColor(41, 128, 186) 
     doc.setLineWidth(.5);
     doc.line(data.cell.x, data.cell.y + data.row.height, data.cell.x, data.cell.y);
}

}`

All 2 comments

Thank you, I think I have found the answer
She is in the "wellDrowCell" event
I took the coordinates of each cell tho I drew a line with this code
doc.line(x1,y1,x2,y2)
x1 -----> data.cell.x;
y1 -----> data.cell.y + data.row.height;
x2 -----> data.cell.x;
y1 -----> data.cell.y
`willDrawCell: (data) => {

if (data.section == "body" && data.column.index != 0) {
     doc.setDrawColor(41, 128, 186) 
     doc.setLineWidth(.5);
     doc.line(data.cell.x, data.cell.y + data.row.height, data.cell.x, data.cell.y);
}

}`

thank you @biloo-dev

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mmghv picture mmghv  路  4Comments

simonbengtsson picture simonbengtsson  路  5Comments

cwolcott picture cwolcott  路  4Comments

webdream-fr picture webdream-fr  路  6Comments

JoakFlores picture JoakFlores  路  3Comments