View as Markdown

API reference: @salmonui/data-grid

DataGridPrintOptionsinterface

import type { DataGridPrintOptions } from '@salmonui/data-grid';
interface DataGridPrintOptions<Row = unknown> extends DataGridPrinting<Row> {
}
DataGridPrintOptions members (4, 4 inherited)
NameSignatureDescription
scopeoptionalinheritedscope?: "all" | "page";

all (default): every page of the current query. page: the current page.

hierarchyoptionalinheritedhierarchy?: ExportHierarchyMode;

Detail and child-grid rows: expanded (default), all, or none.

detailoptionalinheriteddetail?: ((ctx: ExportDetailContext<Row>) => void | ExportDetail | null | undefined);

A detail block printed after a data row (text lines or a child table), as the export detail hook: React detail templates never print by themselves. undefined falls back to the child grid (hierarchy), null prints none.

treeoptionalinheritedtree?: "all" | "expanded";

Tree mode: expanded (default) prints the visible rows, all every kept row; the tree column is indented.