New to KendoReactLearn about KendoReact Free.

DragAndDropProps

Updated over 6 months ago

Represents the properties of the DragAndDrop component.

NameTypeDefaultDescription

children?

React.ReactNode

Represents the children of the DragAndDrop component. The children prop can be any valid React 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 a custom context to the DragAndDrop component. Useful when there are multiple drag-and-drop functionalities in a single component.

Not finding the help you need?
Contact Support