UNPKG

@adaptabletools/adaptable

Version:

Powerful data-agnostic HTML5 AG Grid extension which provides advanced, cutting-edge functionality to meet all DataGrid requirements

12 lines (11 loc) 445 B
/// <reference types="react" /> export default function useDraggable({ onMove, onDrop, getBoundingRect, handleSelector, }: { onMove?: (event: MouseEvent) => void; onDrop?: (dx: number, dy: number) => void; getBoundingRect?: () => DOMRect; handleSelector?: string; }): { handleRef: (newNode: HTMLElement) => void; targetRef: import("react").RefObject<HTMLElement>; applyTransform: (dx: number, dy: number) => void; };