View as Markdown

API reference: @salmonui/data-grid

DataGridPrintinginterface

import type { DataGridPrinting } from '@salmonui/data-grid';
interface DataGridPrinting<Row = unknown> {
    readonly scope?: 'all' | 'page';
    readonly hierarchy?: ExportHierarchyMode;
    readonly detail?: ExportHandlers<Row>['detail'];
    readonly tree?: 'expanded' | 'all';
}

Print scope, hierarchy, detail and tree options.

DataGridPrinting members (4)
NameSignatureDescription
scopeoptionalreadonly scope?: 'all' | 'page';

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

hierarchyoptionalreadonly hierarchy?: ExportHierarchyMode;

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

detailoptionalreadonly detail?: ExportHandlers<Row>['detail'];

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.

treeoptionalreadonly tree?: 'expanded' | 'all';

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