Class ecm.widget.listView.gridModules.DndRow
Extends
gridx.modules.dnd.Row.
This module extends gridx/modules/dnd/Row. Adding the capability of canDrop when hovering over a row.
Override canDrop to determine if the sourceItems can or cannot be moved/copied to the targetItem. Listen
to onDrop and provide the logic for dropping.
Defined in: <ecm\widget\listView\gridModules\DndRow.js>.
Constructor Summary
Constructor Attributes | Constructor Name and Description |
---|---|
Field Summary
Field Attributes | Field Name and Description |
---|---|
Tree that the gridx could dnd to - needed to fix bug in FF < 15
|
Method Summary
Method Attributes | Method Name and Description |
---|---|
canDrop(sourceItems, The, isCopy)
Optionally override in your application.
|
|
destroy()
Destroy.
|
|
Returns boolean indicating if the drag should start in "copy" mode.
|
|
Returns boolean indicating if dragging is allowed.
|
|
onDrop(sourceItems, The, isCopy)
Optionally listen to this in your application.
|
|
preload()
|
|
setTree(tree)
Set the tree that the user can drop grid row(s) onto.
|
Field Detail
tree
Tree that the gridx could dnd to - needed to fix bug in FF < 15
Method Detail
canDrop(sourceItems, The, isCopy)
Optionally override in your application. Can use this to check if the user has authorization to drop.
- Parameters:
- sourceItems
- The source items.
- The
- target item dropping on.
- isCopy
- Boolean indicating if this is a copy or a move.
destroy()
Destroy.
isDragCopy()
Returns boolean indicating if the drag should start in "copy" mode. Can be used by other modules to determine
dnd support.
isDraggingAllowed()
Returns boolean indicating if dragging is allowed. Can be used by other modules to determine dnd support.
onDrop(sourceItems, The, isCopy)
Optionally listen to this in your application. This can handle a drop event from an internal (within the
application) source.
- Parameters:
- sourceItems
- The source items.
- The
- target item dropping on.
- isCopy
- Boolean indicating if this is a copy or a move.
preload()
setTree(tree)
Set the tree that the user can drop grid row(s) onto. Needed to fix a bug in FF < 15. Allows the grid to drop
row(s) on the tree nodes of the specified tree.
- Parameters:
- tree
- The tree that the user can drop grid row(s) on.