View as Markdown

API reference: @salmonui/data-grid/engine

SelectionSelectRangeCommandtype

import type { SelectionSelectRangeCommand } from '@salmonui/data-grid/engine';

Also exported from @salmonui/data-grid/engine/selection.

type SelectionSelectRangeCommand = {
    type: 'selection.selectRange';
    toId: RowId;
    fromId?: RowId;
    mode?: 'replace' | 'add';
};

Rows between fromId (default: the anchor) and toId in visible order.

SelectionSelectRangeCommand members (4)
NameSignatureDescription
typetype: 'selection.selectRange';
toIdtoId: RowId;
fromIdoptionalfromId?: RowId;
modeoptionalmode?: 'replace' | 'add';