Documentation

@kanunilabs/pivotgrid-react


@kanunilabs/pivotgrid-react / PivotColumnWidthDefaults

Interface: PivotColumnWidthDefaults

Starting widths, in pixels, for every column of a kind — the renderer's defaultColumnWidths option.

Configuration, not state: it is not persisted, and a width in columnWidths (a user's drag, or setColumnWidths) wins over it. That is also why it is a separate option rather than seeded columnWidths entries: the number of data columns is only known once the data is pivoted, and a default written into the persisted map would outlive a later change of the default in the app's code.

Properties

data?

optional data?: number

Every data column. Default 95.


rowHeader?

optional rowHeader?: number

Every row-header column: one per row field in the tabular layout, the single column in the tree layout. Default 150.