Documentation

@kanunilabs/datagrid-react


@kanunilabs/datagrid-react / InferColumnsOptions

Interface: InferColumnsOptions

Properties

defaults?

optional defaults?: Partial<GridColumnDef<GridRowData>>

Applied to every produced column, before field/headerName.


exclude?

optional exclude?: readonly string[]

Never produce a column for these fields (an internal id, a big blob).


humanizeHeaders?

optional humanizeHeaders?: boolean

Turn unitPrice into Unit price. Default true — a header of unitPrice is the giveaway that nobody looked at the screen.


include?

optional include?: readonly string[]

Only these fields, in this order. Everything else is skipped.


sampleSize?

optional sampleSize?: number

Rows to look at. Default 50.