View as Markdown

API reference: @salmonui/data-grid

DataGridSpantype

import type { DataGridSpan } from '@salmonui/data-grid';
type DataGridSpan<Row> = boolean | ((ctx: DataGridSpanContext<Row>) => number);

Span of a cell: a function returns an explicit span (1 = no span); true merges equal adjacent non-empty values. Called for rendered rows only.