View as Markdown

API reference: @salmonui/data-grid/engine/expansion

dataIndexAtfunction

import { dataIndexAt } from '@salmonui/data-grid/engine/expansion';
function dataIndexAt<Row>(model: RowModelSnapshot<Row>, index: number): number;

Data row index (captions, footers, detail rows, and pinned rows not counted) of the row at visible index, or -1 for a synthetic or pinned row. O(log) for plain, grouped, and detail views; lazy group views are scanned.