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.
| Name | Signature | Description |
|---|---|---|
rowId | readonly rowId: RowId; | |
row | readonly row: Row | null; | |
rowIndex | readonly rowIndex: number; | Position in the visible row model; -1 when the row is filtered out. |
field | readonly field: string | null; | Column of the cell the element is in; null for a row id or a row-level element. |
column | readonly column: DataGridColumnInfo<Row> | null; | |
element | readonly element: HTMLElement | null; | The row element; null outside the rendered window. |
cellElement | readonly cellElement: HTMLElement | null; |