Interaction
CellPosition, ContextMenuBuilder, ContextMenuContext, ContextMenuItem and 6 more: generated from the source of active-grid.
Exported by @workspace/. Generated from the package source; part of the index of every export.
Types#
interface CellPosition {
rowIndex: number;
colIndex: number;
}interface BatchCommitPayload<TData = DefaultRowData> {
changes: EditingCommitPayload<TData>[];
totalCellChanges: number;
}A rectangular selection range defined by start and end cell coordinates.
interface CellRange {
startRow: number;
startCol: number;
endRow: number;
endCol: number;
}Full cell selection state.
interface CellSelectionState {
ranges: CellRange[];
activeRange: CellRange | null;
}interface DirtyCellEntry {
rowId: string;
columnId: string;
originalValue: unknown;
currentValue: unknown;
sequence: number;
error?: string;
}interface EditingCommitPayload<TData = DefaultRowData> {
rowId: string;
originalRow: TData;
changes: Record<string, unknown>;
newData: TData;
}- Type
type EditMode = 'cell' | 'row' | 'batch';