@kanunilabs/datagrid 1.9.4 → 1.9.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -333,6 +333,15 @@ interface PrintLayoutOptions {
333
333
  * layout puts every row in the DOM, and past report sizes that is a frozen
334
334
  * tab behind a dialog the user cannot cancel. Use exportPdf() there. */
335
335
  maxRows?: number;
336
+ /**
337
+ * Called when a print is asked for and the result is over `maxRows`, so the
338
+ * grid prints the rows on screen only. Tell the user, or offer the PDF
339
+ * export: without it the shorter printout is silent (Tekax, 2026-10-28).
340
+ */
341
+ onLimit?: (info: {
342
+ rows: number;
343
+ maxRows: number;
344
+ }) => void;
336
345
  }
337
346
  /** What a row template is handed — the React `RowTemplateContext`. */
338
347
  interface RowTemplateContext<TRow> {
package/dist/index.d.ts CHANGED
@@ -333,6 +333,15 @@ interface PrintLayoutOptions {
333
333
  * layout puts every row in the DOM, and past report sizes that is a frozen
334
334
  * tab behind a dialog the user cannot cancel. Use exportPdf() there. */
335
335
  maxRows?: number;
336
+ /**
337
+ * Called when a print is asked for and the result is over `maxRows`, so the
338
+ * grid prints the rows on screen only. Tell the user, or offer the PDF
339
+ * export: without it the shorter printout is silent (Tekax, 2026-10-28).
340
+ */
341
+ onLimit?: (info: {
342
+ rows: number;
343
+ maxRows: number;
344
+ }) => void;
336
345
  }
337
346
  /** What a row template is handed — the React `RowTemplateContext`. */
338
347
  interface RowTemplateContext<TRow> {