API reference: @salmonui/data-grid
DataGridRowDraginterface
import type { DataGridRowDrag } from '@salmonui/data-grid';interface DataGridRowDrag {
readonly targetId?: string;
readonly acrossGroups?: boolean;
readonly orderField?: string;
readonly handoff?: RowDragHandoff;
}
rowDrag prop.
| Name | Signature | Description |
|---|---|---|
targetIdoptional | readonly targetId?: string; | Drop into another grid (its |
acrossGroupsoptional | readonly acrossGroups?: boolean; | Allow drops into another group (grouped values are rewritten). Default false. |
orderFieldoptional | readonly orderField?: string; | Field holding a persisted order; drops write new values to it. |
handoffoptional | readonly handoff?: RowDragHandoff; | Registry shared by the grids that exchange rows. Default: one registry shared by every |