A lot have changed in this release. Under the hood most code is rewritten and some additions, improvements and changes have been made to the public api to make it easier to use. New features include:
- Styling
- Themes
- Hooks
If you are upgrading to 2.x from 1.x keep those things in mind:
- Use the hooks (or styles and themes) instead of
renderCell
,renderHeaderCell
,renderFooter
andrenderHeader
- Custom column width now specified with the style columnWidth
- Use
tableWidth
instead ofextendWidth
- Use
columnWidth: 'wrap'
instead ofoverflowColumns
- Use
pageBreak
instead ofavoidPageSplit
- Use
margin
instead ofmargins
autoTableHtmlToJson
now always returns an object with seperate columns and rows properties- Use
API.autoTableEndPosY()
instead ofAPI.autoTableEndPos()