New to KendoReactLearn about KendoReact Free.

DraggableProps

Represents the props of the KendoReact Draggable component.

NameTypeDefaultDescription

autoScroll?

boolean | AutoScrollOptions

Set the autoScroll property to false to disable automatic container scroll when close to the edge. For more information, refer to the Auto Scroll article.

Defaults to true.

childRef?

React.Ref<"null" | HTMLElement | {[key: string]: any}>

Callback to get the child element ref. Useful as the Draggable overrides ref of the child element.

context?

React.Context<{ deregisterDrag?: (item: RefObject<"null" | DragTarget>) => void; deregisterDrop?: (item: RefObject<"null" | DragTarget>) => void; drag?: "null" | RefObject<"null" | DragTarget>; drags?: RefObject<"null" | DragTarget>[]; drop?: "null" | RefObject<"null" | DropTarget>; drops?: RefObject<"null" | DropTarget>[]; registerDrag?: (item: RefObject<"null" | DragTarget>) => void; registerDrop?: (item: RefObject<"null" | DragTarget>) => void; setDrag?: (value: "null" | RefObject<DragTarget>) => void; setDrop?: (value: "null" | RefObject<DropTarget>) => void; }>

Allows passing custom context. Use it to isolate drag and drop events in scenarios with multiple drag and drop functionalities on a single component.

hint?

"null" | RefObject<"null" | HTMLElement | { element: "null" | HTMLElement; }>

Set the hint to override the element used for collision detection.

For more information, refer to the Drag Hint article.

mouseOnly?

boolean

Set the mouseOnly property to true to stop the draggable from attaching touch event handlers.

Defaults to false.

onDrag?

(event: DraggableDragEvent) => void

Fires when the user drag the element inside the Draggable component.

onDragEnd?

(event: DraggableDragEndEvent) => void

Fires when the user finishes dragging the element inside the Draggable component.

onDragStart?

(event: DraggableDragStartEvent) => void

Fires when the user starts dragging the element inside the Draggable component.

onPress?

(event: DraggablePressEvent) => void

Fires when the user press element inside the Draggable component.

onRelease?

(event: DraggableReleaseEvent) => void

Fires when the user release the current drag action.

Not finding the help you need?
Contact Support