API reference: @salmonui/data-grid/engine
StageContextinterface
import type { StageContext } from '@salmonui/data-grid/engine';interface StageContext<Row, State> {
readonly query: DataQuery;
readonly columns: ColumnSnapshot<Row>;
readonly state: State;
readonly locale: string;
readonly timeZone: string | undefined;
readonly sourceIndexOf?: (rowId: RowId) => number;
readonly sourceChange?: {
readonly from: readonly Row[];
readonly delta: RowDelta;
} | null;
}
| Name | Signature | Description |
|---|---|---|
query | readonly query: DataQuery; | |
columns | readonly columns: ColumnSnapshot<Row>; | |
state | readonly state: State; | |
locale | readonly locale: string; | |
timeZone | readonly timeZone: string | undefined; | The grid |
sourceIndexOfoptional | readonly sourceIndexOf?: (rowId: RowId) => number; | Source index of a row id through the engine id index, or -1. |