View as Markdown

API reference: @salmonui/data-grid/engine

ClipboardMethodstype

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

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

type ClipboardMethods<Row> = {
    copy(ctx: ModuleContext<Row>, options?: CopyOptions): ClipboardCopy;
    parse(ctx: ModuleContext<Row>, text: string): string[][];
};
ClipboardMethods members (2)
NameSignatureDescription
copycopy(ctx: ModuleContext<Row>, options?: CopyOptions): ClipboardCopy;
parseparse(ctx: ModuleContext<Row>, text: string): string[][];

Parses TSV (quoted fields, CRLF) into rows of cells.