3.4.5 Headers in Basic autotable not displaying?
See original GitHub issueSimon, thanks for the work you’ve put into this. With 3.4.5, I’m suddenly not seeing column headers using the basic autotable. Here’s the relevant code:
doc = new jsPDF({
orientation: 'portrait',
unit: 'pt',
format: 'letter'
});
...
doc.autoTable(columns, rows, {
styles: {
fontSize: 8.5,
textColor: 0,
cellPadding: {bottom: 10}
},
headerStyles: {
fontSize: 10,
halign: "center",
textColor: 255
},
columnStyles: {0: {fontStyle: 'bold'}},
margin: {
top: 50
}
});
columns
is a one-dimension array and rows
is a two-dimension array.
It’s been years since I messed with this code, so if you’ve changed the API feel free to tell me to go read the docs. I just thought I’d check in case it was a bug with the new version. Thank you!
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
jsPDF auto-table header text not working and how to render ...
Currently the doc.text only takes string as a parameter. i want to render something like : "Main Title small title " to the...
Read more >jspdf-autotable/README.md - UNPKG
- `autoTableAddPage` Use in the hooks to continue the table on the next page. Adds a new header automatically. 159. 160, ### Upgrade...
Read more >AutoTable - Table plugin for jsPDF - npm
This jsPDF plugin aims at making it easy to generate pdf tables either from HTML or directly from Javascript. Check out the demo...
Read more >AutoVue Client/Server Deployment Viewing Configuration Guide
by selecting Options, Show Panels, and then Main Panel. □. You can control whether or not to display the markup tree in the...
Read more >Storm Water Management Model User's Manual Version 5.1
Launch EPA SWMM if it is not already running and select File >> New from the Main. Menu bar to create a new...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yes, it works now! Thanks for addressing this so quickly!
Fixed now in 3.4.6. Let me know if it works for you!