# clipboardCopied

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

Canonical: https://grid.syidax.com/docs/events/clipboardCopied/

<a id="meaning"></a>

## 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

<a id="contract"></a>

## Exact input and result types

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

<a id="usage"></a>

## 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();
```

<a id="types"></a>

## Read related types

- [CellRangeBounds](https://grid.syidax.com/docs/types/CellRangeBounds.md)

<a id="recipes"></a>

## Feature explanations and examples

- [Copy and paste ranges](https://grid.syidax.com/docs/features/range-clipboard.md) — Copy values from a rectangular range and paste them in the same row and column arrangement. Targets are determined from the starting cell and remain subject to editability, permissions, and validation.
