onListBeforeDragIn
fires before a dragged element is moved over the droppable list
boolean onListBeforeDragIn(object context,Event ev,object list);
| context | object | drag-n-drop context object with a set of properties (see details) |
| ev | Event | a native event object |
| list | object | the list object where the event has happened |
| boolean | returning false will prevent dropping of the element |
Example
$$("myBoard").attachEvent("onListBeforeDragIn", function(context,ev,list){
if(...){
return false;
}
return true;
});
Related samples
Details
The properties of the context object are:
- from - the source object
- to - the target object
- source - the ID of the dragged item(s)
- target - the ID of the drop target, null for drop on an empty space
- start - the ID from which drag-n-drop started
- index - the index of the item in the column
- x_offset - the left offset between the pointer and the dragged list
- y_offset - the top offset between the pointer and the dragged list
Back to top
Join Our Forum
We've retired comments here. Visit our forum for faster technical support,
connect with other developers, and share your feedback there.