@adaptabletools/adaptable-cjs
Version:
Powerful data-agnostic HTML5 AG Grid extension which provides advanced, cutting-edge functionality to meet all DataGrid requirements
11 lines (10 loc) • 413 B
TypeScript
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;
};