View as Markdown

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.

DataGridRowDrag members (4)
NameSignatureDescription
targetIdoptionalreadonly targetId?: string;

Drop into another grid (its id) or onto a custom element (its id). Default: reorder within the grid.

acrossGroupsoptionalreadonly acrossGroups?: boolean;

Allow drops into another group (grouped values are rewritten). Default false.

orderFieldoptionalreadonly orderField?: string;

Field holding a persisted order; drops write new values to it.

handoffoptionalreadonly handoff?: RowDragHandoff;

Registry shared by the grids that exchange rows. Default: one registry shared by every DataGrid of the page.