Documentation

@kanunilabs/datagrid


@kanunilabs/datagrid / RowDragConfig

Interface: RowDragConfig<TRow>

The React rowDrag prop's shape, DOM-flavoured.

Type Parameters

TRow

TRow = GridRowData

Properties

allowDropInsert?

optional allowDropInsert?: boolean

Accept rows from another grid in the group. Default true when group is set.


allowReordering?

optional allowReordering?: boolean

Reordering within this grid. Default true.


enabled?

optional enabled?: boolean


group?

optional group?: string

Grids sharing a group can exchange rows.


onAdd?

optional onAdd?: (event) => void

A row arrived from another grid.

Parameters

event

RowDropEvent<TRow>

Returns

void


onReorder?

optional onReorder?: (event) => void

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