Documentation

@kanunilabs/datagrid-react


@kanunilabs/datagrid-react / GridHeaderBandsProps

Interface: GridHeaderBandsProps<TRow>

Defined in: datagrid-react/src/components/GridHeaderBands.tsx:38

Type Parameters

TRow

TRow = GridRowData

Properties

bandFold?

optional bandFold?: object

Defined in: datagrid-react/src/components/GridHeaderBands.tsx:56

Folding (gap analysis P2.6). Absent leaves bands display-only, exactly as they were — a grid whose columns declare no bandShow never sees a toggle.

collapsed

collapsed: (path) => boolean

Parameters
path

readonly string[]

Returns

boolean

collapsible

collapsible: (path) => boolean

Parameters
path

readonly string[]

Returns

boolean

labels

labels: object

labels.collapse

collapse: string

labels.expand

expand: string

onToggle

onToggle: (path) => void

Parameters
path

string[]

Returns

void

pathOf

pathOf: (columnId) => string[]

Band path of a column, outermost first.

Parameters
columnId

string

Returns

string[]


centerColumns

centerColumns: ReactColumnRuntime<TRow>[]

Defined in: datagrid-react/src/components/GridHeaderBands.tsx:41

The virtualized slice of the centre block, as the header renders it.


checkboxColumn?

optional checkboxColumn?: boolean

Defined in: datagrid-react/src/components/GridHeaderBands.tsx:46


depth

depth: number

Defined in: datagrid-react/src/components/GridHeaderBands.tsx:45

Number of band rows. Nothing renders at 0.


detailColumn?

optional detailColumn?: boolean

Defined in: datagrid-react/src/components/GridHeaderBands.tsx:47


layout

layout: ColumnLayout<TRow>

Defined in: datagrid-react/src/components/GridHeaderBands.tsx:39


leadingSpacer

leadingSpacer: number

Defined in: datagrid-react/src/components/GridHeaderBands.tsx:42


rowHeight?

optional rowHeight?: number

Defined in: datagrid-react/src/components/GridHeaderBands.tsx:51

Height of one band row, in px. Defaults to BAND_ROW_HEIGHT.


rowNumberColumn?

optional rowNumberColumn?: boolean

Defined in: datagrid-react/src/components/GridHeaderBands.tsx:49

Leading row-number column (gap analysis P3.5).


trailingSpacer

trailingSpacer: number

Defined in: datagrid-react/src/components/GridHeaderBands.tsx:43