Class ecm.widget.listView.gridModules.DndFromDesktop
Extends
gridx.core._Module.
This module controls the drag-and-drop from the desktop to the grid. The onDrop method is called when
files from the desktop are dropped on a row in the grid. canDropOnRow method is called when hover over a
row. Allows the application to specify if the row can or cannot be dropped on. For example, this can be
used to determine if the user has the authority to drop files on this row.
Defined in: <ecm\widget\listView\gridModules\DndFromDesktop.js>.
Constructor Summary
Constructor Attributes | Constructor Name and Description |
---|---|
Method Summary
Method Attributes | Method Name and Description |
---|---|
canDropOnRow(row, evt)
Optionally override in your application.
|
|
dragEvent(dragDropObject)
|
|
See GridX API documentation for details.
|
|
onDragStart(evt)
Called when a dragStart event happened on a row.
|
|
onDrop(row, files, evt)
Fired when file(s) from the desktop are dropped on a row in the grid.
|
|
onExternalDragExit(evt)
Remove row over indicator when exit the row.
|
|
onExternalDragOver(evt)
On hover over the row, shows row over indicator.
|
|
onExternalDrop(evt)
Called when a file or files are dropped on the row.
|
|
preload(args)
Listens to grid events.
|
Method Detail
canDropOnRow(row, evt)
Optionally override in your application. Return true if can drop on this row.
- Parameters:
- row
- The row in the grid to drop on.
- evt
- The event.
dragEvent(dragDropObject)
- Parameters:
- dragDropObject
getAPIPath()
See GridX API documentation for details.
onDragStart(evt)
Called when a dragStart event happened on a row.
Check to see if the row is selected before allowing the drag/drop to happen.
- Parameters:
- evt
- The event.
onDrop(row, files, evt)
Fired when file(s) from the desktop are dropped on a row in the grid.
- Parameters:
- row
- The row in the grid to drop on.
- files
- The file(s) dragged from the desktop.
- evt
- The event.
onExternalDragExit(evt)
Remove row over indicator when exit the row.
- Parameters:
- evt
- The event.
onExternalDragOver(evt)
On hover over the row, shows row over indicator.
- Parameters:
- evt
- The event.
onExternalDrop(evt)
Called when a file or files are dropped on the row. Calls onDrop with the row, files, and event.
- Parameters:
- evt
- The event.
preload(args)
Listens to grid events.
- Parameters:
- args