API REFERENCE

clipboardPasted

Reports paste results. Inspect applied/skipped counts, starting position, and actual changes together.

What does this API do?

Reports paste results. Inspect applied/skipped counts, starting position, and actual changes together.

API for Pro features: Range copy / paste

Exact input and result types

typescript
clipboardPasted: {
    applied: number;
    skipped: number;
    top: number;
    left: number;
    changes: GridCellValueChangedDetail[];
  }

Usage flow

Subscribe with grid.addEventListener('clipboardPasted', 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('clipboardPasted', event => {
  console.log(event.detail);
}, { signal: controller.signal });
// On view disposal: controller.abort();

Read related types

Feature explanations and examples