# SyGridRowDragEventDetail

Fields, allowed values, and APIs that use SyGridRowDragEventDetail.

Canonical: https://grid.syidax.com/docs/types/SyGridRowDragEventDetail/

<a id="definition"></a>

## Type definition

A question mark (?) marks an optional field; readonly marks a value you should not change directly. A union (|) accepts one of the listed forms. Functions are callbacks that Grid invokes at the relevant point.

```typescript
export interface SyGridRowDragEventDetail {
  readonly dragId: string;
  readonly item: SyGridRowDragItem;
  readonly target: SyGridRowDragTarget | null;
  readonly insertionIndex: number | null;
  readonly stale?: boolean;
  readonly keyboard: boolean;
}
```

<a id="used-by"></a>

## APIs using this type

- [rowDragEnter](https://grid.syidax.com/docs/events/rowDragEnter.md) — Emitted when a row drag enters a target area.
- [rowDragMove](https://grid.syidax.com/docs/events/rowDragMove.md) — Emitted during row dragging. Avoid expensive save operations on every high-frequency event.
- [rowDragLeave](https://grid.syidax.com/docs/events/rowDragLeave.md) — Emitted when a row drag leaves an area. Different from drag completion.

<a id="parents"></a>

## Contracts containing this type

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

<a id="related"></a>

## Related types

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