keepTogether
Function keepTogether
keepTogether(options: { gap?: number; margin?: EdgesInput }, ...children: Node[]): NodeWraps children so that, under renderFlow, they paginate as one atomic
unit — if the combined height won't fit on the current page, the whole
group is pushed to the next page intact. Use it to keep
subtotal/tax/total triples together, table-row + its continuation, etc.
Parameters
-
options: { gap?: number; margin?: EdgesInput } -
...children: Node[]
Returns Node