Class ecm.widget.listView.gridModules.DndRowMoveCopy


Extends ecm.widget.listView.gridModules.DndRow.
This module provides dnd capability for the row, checking for security when hovering over a row, and providing move or copy action when dropping. This module extends ./DndRow. Adding the capability of checking for security when hovering over a row & providing move or copy logic when drop.
Defined in: <ecm\widget\listView\gridModules\DndRowMoveCopy.js>.

Constructor Summary

Constructor Attributes Constructor Name and Description
 
Fields borrowed from class ecm.widget.listView.gridModules.DndRow:
tree

Method Summary

Method Attributes Method Name and Description
 
canDrop(sourceItems, targetItem, isCopy)
Determines if the document or documents can be dragged to the specified target.
 
onDrop(sourceItems, targetItem, isCopy)
Handles a drop event from an internal (within the application) source.
 
Methods borrowed from class ecm.widget.listView.gridModules.DndRow:
destroy, isDragCopy, isDraggingAllowed, setTree

Constructor Detail

ecm.widget.listView.gridModules.DndRowMoveCopy()

Method Detail

canDrop(sourceItems, targetItem, isCopy)

Determines if the document or documents can be dragged to the specified target.
Parameters:
sourceItems
Array of items dragged.
targetItem
Target item for the items.
isCopy
Boolean flag indicating if the source item is a copy of the target.
Returns:
Returns true if the document(s) can be dragged and false if they cannot.

onDrop(sourceItems, targetItem, isCopy)

Handles a drop event from an internal (within the application) source.
Parameters:
sourceItems
Array of items dragged.
targetItem
Target item for the items.
isCopy
Boolean flag indicating if the source item is a copy of the target.

preload()