Skip to main content

DragAndDropFeatureItemInstance <T>

Index

Properties

getDragHandleProps

getDragHandleProps: () => Record<string, any>

Note that item.getProps() already passes in all drag event handlers by default. Set seperateDragHandle to true to disable the default behavior and use this on the handler element instead.


Type declaration

    • (): Record<string, any>
    • Returns Record<string, any>

isDragTarget

isDragTarget: () => boolean

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

    • (): boolean
    • Returns boolean

isDragTargetAbove

isDragTargetAbove: () => boolean

Type declaration

    • (): boolean
    • Returns boolean

isDragTargetBelow

isDragTargetBelow: () => boolean

Type declaration

    • (): boolean
    • Returns boolean

isDraggingOver

isDraggingOver: () => boolean

Type declaration

    • (): boolean
    • Returns boolean

isUnorderedDragTarget

isUnorderedDragTarget: () => boolean

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

    • (): boolean
    • Returns boolean