New to KendoReact? Start a free 30-day trial
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?: (event: NormalizedDragEvent) => void; onDragEnd?: (event: NormalizedDragEvent) => void; onDragStart?: (event: NormalizedDragEvent) => void; onPress?: (event: NormalizedDragEvent) => void; onRelease?: (event: NormalizedDragEvent) => void; }
A collection of callbacks, called by the `useDraggable` hook when a specific action occurs.
options
Additional configuration of the `useDraggable` hook.