View as Markdown

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;
}
SelectionState members (6)
NameSignatureDescription
optionsreadonly options: ResolvedSelectionOptions;
versionreadonly version: number;
rowsreadonly rows: RowSelection;
cellsreadonly cells: { readonly anchor: CellKey | null; readonly ranges: readonly CellRange[]; };
columnsreadonly columns: readonly ColumnId[];
changereadonly change: SelectionChange;

What the last command changed (membership flips of rows.ids).