@kanunilabs/datagrid / RowDragConfig
Interface: RowDragConfig<TRow>
Defined in: datagrid/src/createGrid.ts:151
The React rowDrag prop's shape, DOM-flavoured.
Type Parameters
TRow
TRow = GridRowData
Properties
allowDropInsert?
optionalallowDropInsert?:boolean
Defined in: datagrid/src/createGrid.ts:158
Accept rows from another grid in the group. Default true when group is set.
allowReordering?
optionalallowReordering?:boolean
Defined in: datagrid/src/createGrid.ts:156
Reordering within this grid. Default true.
enabled?
optionalenabled?:boolean
Defined in: datagrid/src/createGrid.ts:152
group?
optionalgroup?:string
Defined in: datagrid/src/createGrid.ts:154
Grids sharing a group can exchange rows.
onAdd?
optionalonAdd?: (event) =>void
Defined in: datagrid/src/createGrid.ts:163
A row arrived from another grid.
Parameters
event
RowDropEvent<TRow>
Returns
void
onReorder?
optionalonReorder?: (event) =>void
Defined in: datagrid/src/createGrid.ts:161
A row was moved within this grid. Without a handler the grid reorders its own source array; with one, YOU own the order.
Parameters
event
RowReorderEvent<TRow>
Returns
void