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[][];
};
| Name | Signature | Description |
|---|---|---|
copy | copy(ctx: ModuleContext<Row>, options?: CopyOptions): ClipboardCopy; | |
parse | parse(ctx: ModuleContext<Row>, text: string): string[][]; | Parses TSV (quoted fields, CRLF) into rows of cells. |