DragAndDropFeatureConfig <T>
Index
Properties
optionalcanDrag
Type declaration
Parameters
items: ItemInstance<T>[]
Returns boolean
optionalcanDragForeignDragObjectOver
Type declaration
Parameters
dataTransfer: DataTransfer
target: DragTarget<T>
Returns boolean
optionalcanDrop
Type declaration
Parameters
items: ItemInstance<T>[]
target: DragTarget<T>
Returns boolean
optionalcanDropForeignDragObject
Checks if a foreign drag object can be dropped on a target, validating that an actual drop can commence based on the data in the DataTransfer object.
Type declaration
Parameters
dataTransfer: DataTransfer
target: DragTarget<T>
Returns boolean
optionalcanReorder
optionalcreateForeignDragObject
Type declaration
Parameters
items: ItemInstance<T>[]
Returns { data: any; dropEffect?: none | copy | link | move; effectAllowed?: none | copy | link | move | copyLink | copyMove | linkMove | all | uninitialized; format: string }
data: any
optionaldropEffect?: none | copy | link | move
optionaleffectAllowed?: none | copy | link | move | copyLink | copyMove | linkMove | all | uninitialized
format: string
optionalindent
optionalonCompleteForeignDrop
Type declaration
Parameters
items: ItemInstance<T>[]
Returns void
optionalonDrop
Type declaration
Parameters
items: ItemInstance<T>[]
target: DragTarget<T>
Returns void | Promise<void>
optionalonDropForeignDragObject
Type declaration
Parameters
dataTransfer: DataTransfer
target: DragTarget<T>
Returns void | Promise<void>
optionalopenOnDropDelay
When dragging for this many ms on a closed folder, the folder will automatically open. Set to zero to disable.
optionalreorderAreaPercentage
Defines the size of the area at the top and bottom of an item where, when an item is dropped, the item willö
be placed above or below the item within the same parent, as opposed to being placed inside the item.
If canReorder
is false
, this is ignored.
optionalsetDndState
optionalsetDragImage
Type declaration
Parameters
items: ItemInstance<T>[]
Returns { imgElement: Element; xOffset?: number; yOffset?: number }
imgElement: Element
optionalxOffset?: number
optionalyOffset?: number
Checks if a droppable visualization should be displayed when dragging a foreign object over a target. Since this is executed on a dragover event,
dataTransfer.getData()
is not available, sodataTransfer.effectAllowed
ordataTransfer.types
should be used instead. Before actually completing the drag, @{link canDropForeignDragObject} will be called by HT before applying the drop.