Documentation

@kanunilabs/datagrid-react


@kanunilabs/datagrid-react / summaryLabel

Function: summaryLabel()

summaryLabel<TRow>(def, labels?): string

Defined in: datagrid-react/src/components/summaryFormat.ts:42

What the footer prints beside the value. A custom reducer's own label wins — "Custom" beside a number tells the reader nothing about what it measures.

labels is the resolved dictionary's map; omitted, it falls back to English so the helper stays usable outside a grid (it is exported).

Type Parameters

TRow

TRow = unknown

Parameters

def

SummaryDef<TRow>

labels?

Record<SummaryType, string> = SUMMARY_TYPE_LABEL

Returns

string