API reference: @salmonui/data-grid
DataGridClipboardApiinterface
import type { DataGridClipboardApi } from '@salmonui/data-grid';interface DataGridClipboardApi {
copy(options?: DataGridCopyOptions): CommandResult;
paste(text?: string): CommandResult;
}
Clipboard methods of the DataGrid instance. Need editing (it registers the clipboard module).
| Name | Signature | Description |
|---|---|---|
copy | copy(options?: DataGridCopyOptions): CommandResult; | Copies the cell range, else the selected rows, else the focused cell to
the system clipboard (drafts included). Falls back to a copy dialog when
the browser blocks clipboard access. |
paste | paste(text?: string): CommandResult; | Pastes TSV |