onListBeforeDragIn

fires before a dragged element is moved over the droppable list

boolean onListBeforeDragIn(object context,Event ev,object list){ ... };

Parameters

contextobjectdrag-n-drop context object with a set of properties (see details)
evEventa native event object
listobjectthe list object where the event has happened

Returns

booleanreturning 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
Back to top
If you have not checked yet, be sure to visit site of our main product Webix easy javascript framework and page of javascript list product.