effect.DropPoint Class
Specification of a drop point node sent to addDropTarget. You may add your own properties in addition to the ones below.
Constructor
effect.DropPoint
(
-
config
Parameters:
-
config
Object
Example:
var dd = new ludo.effect.DragDrop();
var el = new Element('div');
dd.addDropTarget({
id:'myDropPoint',
el:el,
name:'John Doe'
});
var el = new Element('div');
dd.addDropTarget({
id:'myDropPoint',
el:el,
name:'Jane Doe'
});
dd.addEvent('enterDropTarget', function(node, dd){
if(node.name === 'John Doe'){
dd.setInvalid(); // Triggers an invalidDropTarget event
}
});
Properties
Attributes
captureRegions
Boolean | Undefined
optional
Capture regions(north,south, west east) when moving over drop points
Default: false
Example:
captureRegions:true