ExecuteDragDrop (open)
Do a drag-drop onto another component
Syntax
LOADLIB "mod::tollium/lib/testframework.whlib";
BOOLEAN FUNCTION ExecuteDragDrop(OBJECT sourcecomp, VARIANT selection, OBJECT targetcomp, RECORD options)Parameters
OBJECT sourcecompComponent with dragged items
VARIANT selectionRowkey(s) of dragged items (lists), selected overlay(s) for table
OBJECT targetcompTarget list component
RECORD optionsOptions
allowfailureAllow drop failure
dropeffectDrop effect: one of "move", "link", "copy"
droplocationDrop location for lists: one of "ontarget", "appendchild", "insertbefore" (only for lists)
targetTarget to drop onto
- Lists: rowkey of target row (if not specified, dropped in empty space)
- Tables: table cell to drop on (if not specified, not dropped on a specific cell)
Return value
BOOLEANWhether a drop handler was found and executed