Code:
var panelDropZone = new Ext.dd.DropZone(v.getEl(), {
getTargetFromEvent: function(e) {
return e.getTarget('.my-div'); // allow to drop op this node.
},
// While over a target node, return the default drop allowed class which
// places a "tick" icon into the drag proxy.
onNodeOver : function(target, dd, e, data){
// onNodeOver is called: target contains = '.my-div'
return Ext.dd.DropZone.prototype.dropAllowed;
},
onNodeDrop : function(target, dd, e, data){
// onNodeDrop isn't called: why?
return true;
}
});
I'm using ext-4.2.2.1118
If onNodeOver is called, why isn't onNodeDrop called; This shouldn't be the case according to the docs. Could this be a bug?
I'm trying to find the code that handles the onNodeXX events.
new Ext.dd.DropZone onNodeDrop isn't called
Aucun commentaire:
Enregistrer un commentaire