View as Markdown

API reference: @salmonui/data-grid

DataGridRowInfointerface

import type { DataGridRowInfo } from '@salmonui/data-grid';
interface DataGridRowInfo<Row> {
    readonly rowId: RowId;
    readonly row: Row | null;
    readonly rowIndex: number;
    readonly field: string | null;
    readonly column: DataGridColumnInfo<Row> | null;
    readonly element: HTMLElement | null;
    readonly cellElement: HTMLElement | null;
}

Row and optional cell resolved from a row id or a DOM element.

DataGridRowInfo members (7)
NameSignatureDescription
rowIdreadonly rowId: RowId;
rowreadonly row: Row | null;
rowIndexreadonly rowIndex: number;

Position in the visible row model; -1 when the row is filtered out.

fieldreadonly field: string | null;

Column of the cell the element is in; null for a row id or a row-level element.

columnreadonly column: DataGridColumnInfo<Row> | null;
elementreadonly element: HTMLElement | null;

The row element; null outside the rendered window.

cellElementreadonly cellElement: HTMLElement | null;