I am creating a presentation using pptgenjs
however i can't seems to create a table border as i wants it to be.
here is the data that i'm trying to use:
let rows = [
["data1","data2"],
["data3","data4"],
["data5","data6"],
]
here is what i tried so far:
let arrBorder = [null,null,{color:'DA70D6'},null]
slide.addTable(rows,{rowH:1,border:arrborder})
in the method i tried, to make a null on the top, left and right of the table, while the bottom are having a line which resulted in this:
However what i wanted the following:
Any advice on how to make it works?
Based on their table documentation, I believe it goes together like this:
The resulting data structure that's fed into
.addTable
would look like: