API reference: @salmonui/data-grid
DataGridBeforePasteEventinterface
import type { DataGridBeforePasteEvent } from '@salmonui/data-grid';interface DataGridBeforePasteEvent extends DataGridEvent {
data: string;
readonly target: DataGridClipboardCell | null;
}
onBeforePaste: preventDefault() cancels, assigning data changes the pasted text.
| Name | Signature | Description |
|---|---|---|
data | data: string; | The clipboard text (TSV). Assign to change what is pasted. |
target | readonly target: DataGridClipboardCell | null; | Top-left target cell: the selected range's top-left cell, else the focused cell; null without a target. |
typeinherited | type: string; |
|
sourceinherited | source: DataGridEventSource; | |
defaultPreventedinherited | defaultPrevented: boolean; | True after |
preventDefaultinherited | preventDefault: () => void; | Before-events and click events: cancels the action (or the built-in behavior). |