DragAndDropFeatureItemInstance <T>
Index
Properties
getDragHandleProps
Type declaration
Returns Record<string, any>
isDragTarget
Checks if the user is dragging in a way which makes this the new parent of the dragged items, either by dragging on top of this item, or by dragging inbetween children of this item. See @{isUnorderedDragTarget} if the latter is undesirable.
Type declaration
Returns boolean
isDragTargetAbove
Type declaration
Returns boolean
isDragTargetBelow
Type declaration
Returns boolean
isDraggingOver
Type declaration
Returns boolean
isUnorderedDragTarget
As opposed to @{isDragTarget}, this will not be true if the target is inbetween children of this item. This returns only true if the user is dragging directly on top of this item.
Type declaration
Returns boolean
Note that
item.getProps()already passes in all drag event handlers by default. SetseperateDragHandleto true to disable the default behavior and use this on the handler element instead.