DragAndDropFeatureConfig <T>
Index
Properties
optionalbottomLinePercentage
optionalcanDrag
Type declaration
Parameters
items: ItemInstance<T>[]
Returns boolean
optionalcanDrop
Type declaration
Parameters
items: ItemInstance<T>[]
target: DropTarget<T>
Returns boolean
optionalcanDropForeignDragObject
Type declaration
Parameters
dataTransfer: DataTransfer
target: DropTarget<T>
Returns boolean
optionalcanDropInbetween
optionalcreateForeignDragObject
Type declaration
Parameters
items: ItemInstance<T>[]
Returns { data: any; format: string }
data: any
format: string
optionalisItemDraggable
Type declaration
Parameters
item: ItemInstance<T>
Returns boolean
optionalonCompleteForeignDrop
Type declaration
Parameters
items: ItemInstance<T>[]
Returns void
optionalonDrop
Type declaration
Parameters
items: ItemInstance<T>[]
target: DropTarget<T>
Returns void
optionalonDropForeignDragObject
Type declaration
Parameters
dataTransfer: DataTransfer
target: DropTarget<T>
Returns void
Runs in the onDragEnd event, if
ev.dataTransfer.dropEffect
is notnone
, i.e. the drop was not aborted. No target is provided as parameter since the target may be a foreign drop target. This is useful to seperate out the logic to move dragged items out of their previous parents. UseonDrop
to handle drop-related logic.This ignores the
canDrop
handler, since the drop target is unknown in this handler.