View as Markdown

API reference: @salmonui/data-grid/engine

PasteResultinterface

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

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

interface PasteResult {
    readonly rows: number;
    readonly columns: number;
    readonly applied: number;
    readonly skipped: number;
    readonly clipped: boolean;
    readonly target: CellRange | null;
}
PasteResult members (6)
NameSignatureDescription
rowsreadonly rows: number;

Rows x columns of the parsed text.

columnsreadonly columns: number;
appliedreadonly applied: number;

Target cells that received a value (also while async validation of the write is pending).

skippedreadonly skipped: number;

Target cells skipped (read-only, outside the grid).

clippedreadonly clipped: boolean;

True when the text was cut to fit the selected range or the grid edge.

targetreadonly target: CellRange | null;

Top-left target cell and the covered range.