API reference: @salmonui/data-grid/engine
SelectionStateinterface
import type { SelectionState } from '@salmonui/data-grid/engine';Also exported from @salmonui/data-grid/engine/selection.
interface SelectionState {
readonly options: ResolvedSelectionOptions;
readonly version: number;
readonly rows: RowSelection;
readonly cells: {
readonly anchor: CellKey | null;
readonly ranges: readonly CellRange[];
};
readonly columns: readonly ColumnId[];
readonly change: SelectionChange;
}
| Name | Signature | Description |
|---|---|---|
options | readonly options: ResolvedSelectionOptions; | |
version | readonly version: number; | |
rows | readonly rows: RowSelection; | |
cells | readonly cells: {
readonly anchor: CellKey | null;
readonly ranges: readonly CellRange[];
}; | |
columns | readonly columns: readonly ColumnId[]; | |
change | readonly change: SelectionChange; | What the last command changed (membership flips of |