useDraggable
Represents the KendoReact useDraggable
hook.
Use it to attach drag
events to a native HTML DOM elements, or custom React Components.
For more information, refer to the KendoReact Draggable article.
Parameters
ref
RefObject<undefined>
The `ref` of the HTML Element or React Component which will enable the `draggable` functionality.
callbacks
{ onDrag?: onDrag; onDragEnd?: onDragEnd; onDragStart?: onDragStart; onPress?: onPress; onRelease?: onRelease; }
A collection of callbacks, called by the `useDraggable` hook when a specific action occurs.
options
Additional configuration of the `useDraggable` hook.