# defaultPasteHandler

> _Since v0.4.2_

Default paste handler that applies pasted data to grid.rows.

This is the built-in handler used when no custom `pasteHandler` is configured.
It clones the rows array for immutability and applies values starting at the target cell.

Behavior:
- Single cell selection: paste expands freely, adds new rows if needed
- Range/row selection: paste is clipped to fit within selection bounds
- Non-editable columns: values are skipped (column alignment preserved)

```ts
function defaultPasteHandler(detail: PasteDetail, grid: GridElement): void
```

## Parameters

| Name | Type | Description |
| ---- | ---- | ----------- |
| `detail` | <code><a href="/grid/plugins/clipboard/interfaces/pastedetail/">PasteDetail</a></code> | The parsed paste data from clipboard |
| `grid` | <code>GridElement</code> | The grid element to update |
