Reputation: 41
I'm looking to draw a header-less table using jspdf autotable I know i have to return false in drawHeader, but this name after v3.0.0 had change. Any help would be appreciated.
Upvotes: 2
Views: 1334
Reputation: 41
var doc = new jsPDF('p', 'pt');
doc.text(20,20,'title');
var res = doc.autoTableHtmlToJson(table);
doc.autoTable(res.columns, res.data,{
theme: 'grid',
showHead: 'never'
});
doc.save("name.pdf");
Upvotes: 2