Documentation

@kanunilabs/pivotgrid-enterprise


@kanunilabs/pivotgrid-enterprise / inferDrillColumns

Function: inferDrillColumns()

inferDrillColumns(records, fields?, sample?): DrillDownColumn[]

The columns behind a set of drilled records.

Keys are discovered across the first sample records rather than the first one alone, so a sparse record set does not lose columns; the pivot's fields supply captions and numeric alignment where a key matches one.

Parameters

records

readonly Record<string, unknown>[]

fields?

readonly PivotField<never, PivotCellTemplate, any>[] = []

sample?

number = DRILL_COLUMN_SAMPLE

Returns

DrillDownColumn[]