@kanunilabs/datagrid-react / PrintLayoutOptions
Interface: PrintLayoutOptions
Defined in: datagrid-react/src/hooks/usePrintLayout.ts:19
Properties
always?
optionalalways?:boolean
Defined in: datagrid-react/src/hooks/usePrintLayout.ts:25
Stay in print layout permanently instead of only while printing. For rendering a grid INTO a report page, where there is no print dialog to react to and the whole result is meant to be in the document.
maxRows?
optionalmaxRows?:number
Defined in: datagrid-react/src/hooks/usePrintLayout.ts:36
Above this many rows the grid does NOT switch (default 5.000).
Print layout puts every row in the DOM. At report sizes that is a beat;
at a hundred thousand it is a frozen tab, and a browser that stops
responding during printing is worse than a short printout. Past the cap the
grid prints what it always did — the visible rows — and says so under
debugMode, because the right tool at that size is exportPdf, which
streams instead.