Skip to Content
ReferenceTypes

SelectionDragHandler

Source on GitHub 

The SelectionDragHandler type is a callback for handling drag events involving selected nodes. It receives the triggering mouse or touch event and an array of the affected nodes.

type SelectionDragHandler<NodeType extends Node = Node> = ( event: ReactMouseEvent, nodes: NodeType[], ) => void;
Parameters:
NameTypeDefault
eventMouseEvent<Element, MouseEvent>
nodesNodeType[]
Returns:
void
Last updated on