Documentation

@kanunilabs/datagrid-react


@kanunilabs/datagrid-react / writeClipboardText

Function: writeClipboardText()

writeClipboardText(text): void

Defined in: datagrid-react/src/components/cellMenuItems.ts:69

Write to the system clipboard, swallowing the platform's refusal.

writeText REJECTS when the document is not focused or permission is withheld, and an un-awaited promise then surfaces as an uncaught rejection in the console — noise that looks like a grid bug and is not one. Swallowed rather than reported because the caller has already published the gesture through notifyClipboardGesture, which is the hook an application uses to observe (or replace) copying.

Parameters

text

string

Returns

void