@kanunilabs/datagrid-react / inferColumns
Function: inferColumns()
inferColumns<
TRow>(rows,options?):GridColumnDef<TRow>[]
Defined in: datagrid-core/dist/index.d.ts:1256
Column definitions derived from the rows.
Field ORDER follows first appearance across the sample, not Object.keys of
the first row alone: rows from a document store legitimately differ, and a
field that only shows up on row 12 is still a field.
Type Parameters
TRow
TRow = GridRowData
Parameters
rows
readonly TRow[]
options?
Returns
GridColumnDef<TRow>[]