@kanunilabs/datagrid-react / ColumnLayout
Interface: ColumnLayout<TRow>
Defined in: datagrid-core/dist/index.d.ts:2494
Type Parameters
TRow
TRow = GridRowData
Properties
center
center:
ColumnRuntime<TRow>[]
Defined in: datagrid-core/dist/index.d.ts:2498
Scrollable block — the only virtualized one.
centerOffsets
centerOffsets:
number[]
Defined in: datagrid-core/dist/index.d.ts:2509
Prefix offsets of the center columns (length = center.length + 1), relative to the start of the center block. Enables O(log n) hit-testing.
centerStickyOffsets
centerStickyOffsets: (
number|null)[]
Defined in: datagrid-core/dist/index.d.ts:2523
For each CENTER column, the inset it sticks at — or null when it does not
stick. Parallel to center, so a renderer reads it by the same index.
A sticky column keeps its place in the scrolling order and only parks
itself once it would leave the viewport, which is what separates it from a
left-pinned one. The inset is measured from the scroller's start edge, so
it clears the left-pinned block and any sticky column ahead of it.
centerWidth
centerWidth:
number
Defined in: datagrid-core/dist/index.d.ts:2502
left
left:
ColumnRuntime<TRow>[]
Defined in: datagrid-core/dist/index.d.ts:2496
Sticky-left block, always rendered.
leftOffsets
leftOffsets:
number[]
Defined in: datagrid-core/dist/index.d.ts:2511
Sticky left inset for each left-pinned column (cumulative).
leftWidth
leftWidth:
number
Defined in: datagrid-core/dist/index.d.ts:2501
right
right:
ColumnRuntime<TRow>[]
Defined in: datagrid-core/dist/index.d.ts:2500
Sticky-right block, always rendered.
rightOffsets
rightOffsets:
number[]
Defined in: datagrid-core/dist/index.d.ts:2513
Sticky right inset for each right-pinned column (cumulative from the end).
rightWidth
rightWidth:
number
Defined in: datagrid-core/dist/index.d.ts:2503
stickyIndices
stickyIndices:
number[]
Defined in: datagrid-core/dist/index.d.ts:2525
Indices into center of the sticky columns, in order.
totalWidth
totalWidth:
number
Defined in: datagrid-core/dist/index.d.ts:2504