Documentation

@kanunilabs/datagrid-react


@kanunilabs/datagrid-react / InferColumnsOptions

Interface: InferColumnsOptions

Defined in: datagrid-core/dist/index.d.ts:1227

Properties

defaults?

optional defaults?: Partial<GridColumnDef<GridRowData>>

Defined in: datagrid-core/dist/index.d.ts:1240

Applied to every produced column, before field/headerName.


exclude?

optional exclude?: readonly string[]

Defined in: datagrid-core/dist/index.d.ts:1231

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


humanizeHeaders?

optional humanizeHeaders?: boolean

Defined in: datagrid-core/dist/index.d.ts:1238

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[]

Defined in: datagrid-core/dist/index.d.ts:1233

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


sampleSize?

optional sampleSize?: number

Defined in: datagrid-core/dist/index.d.ts:1229

Rows to look at. Default 50.