Documentation

@kanunilabs/datagrid


@kanunilabs/datagrid / PrintLayoutOptions

Interface: PrintLayoutOptions

Properties

always?

optional always?: boolean

Stay in print layout permanently — for a grid rendered INTO a report page.


maxRows?

optional maxRows?: number

Above this many rows the grid does NOT switch (default 5.000): print layout puts every row in the DOM, and past report sizes that is a frozen tab behind a dialog the user cannot cancel. Use exportPdf() there.


onLimit?

optional onLimit?: (info) => void

Called when a print is asked for and the result is over maxRows, so the grid prints the rows on screen only. Tell the user, or offer the PDF export: without it the shorter printout is silent (2026-10-28).

Parameters

info
maxRows

number

rows

number

Returns

void