View as Markdown

API reference: @salmonui/data-grid/engine

CellSpanResolverinterface

import type { CellSpanResolver } from '@salmonui/data-grid/engine';
interface CellSpanResolver {
    (rowIndex: number, columnIndex: number): CellSpanBlock | null;
    readonly active?: () => boolean;
}

The span block covering a visible cell, or null when the cell is not part of a span (a 1x1 block). Called only on user actions (moves, selection, editing), never per frame; it must be cheap when nothing spans.