UNPKG

@dgit/react-data-grid-addons

Version:

A set of addons for react-data-grid

22 lines (16 loc) 294 B
export class DragTestSource { constructor(item) { this.item = item; this.didCallBeginDrag = false; } beginDrag() { return this.item; } canDrag() { return true; } isDragging(monitor, handle) { return handle === monitor.getSourceId(); } endDrag() { } }