Where can I learn more about adjusting the breakToken in the afterPageLayout() callback? Is there an example of this somewhere?
Heya! PagedJS fan here with a question!
From https://www.pagedmedia.org/paged-js/ …
afterPageLayout(pageElement, page, breakToken)
runs after a single page has gone through layout, and allows adjusting the breakToken
Where can I learn more about adjusting the breakToken in the afterPageLayout() callback? Is there an example of this somewhere?
Still wondering how I might append content into a page afterPageLayout and possibly move some content to the next page after appending if necessary.
Attached below is an example ballot created using PagedJS with redlines showing the content I'd like to be able to append to each page's content after layout, and an example of content which would need to be moved to the next page.
VotingWorks-Sample-Ballot--General-Election--English-Spanish-v2020-06-24-continue-example.pdf
Issue creation requested by @julientaq in the hopes that @fchasen can describe how to use the breakToken… and perhaps provide some examples?
Originally posted here: https://mattermost.pagedmedia.org/pagedmedia/pl/3yddeeh9htroiruetqey451asa