API REFERENCE

clipboardCopied

Emitted after clipboard copying completes. Output text and ranges are available, so avoid logging sensitive values.

What does this API do?

Emitted after clipboard copying completes. Output text and ranges are available, so avoid logging sensitive values.

API for Pro features: Range copy / paste

Exact input and result types

typescript
clipboardCopied: { text: string; ranges: CellRangeBounds[] }

Usage flow

Subscribe with grid.addEventListener('clipboardCopied', handler). The result is in event.detail, and event names are case-sensitive. Remove subscriptions when disposing of the view.

javascript
const controller = new AbortController();
grid.addEventListener('clipboardCopied', event => {
  console.log(event.detail);
}, { signal: controller.signal });
// On view disposal: controller.abort();

Read related types

Feature explanations and examples