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.
 
See GridX API documentation for details.
 
onDrop(row, files, evt)
Fired when file(s) from the desktop are dropped on a row in the grid.
 
Remove row over indicator when exit the row.
 
On hover over the row, shows row over indicator.
 
Called when a file or files are dropped on the row.
 
preload(args)
Listens to grid events.

Constructor Detail

ecm.widget.listView.gridModules.DndFromDesktop()

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.

getAPIPath()

See GridX API documentation for details.

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