ludo.effect.DropPoint


new ludo.effect.DropPoint(config)

Specification of a drop point node sent to {{#crossLink "effect.DragDrop/addDropTarget"}}{{/crossLink}}.
You may add your own properties in addition to the ones below.

Parameters:
Name Type Description
config Object
Source:
Example
var dd = new ludo.effect.DragDrop();
 var el = $('<div>');
 dd.addDropTarget({
 		id:'myDropPoint',
 		el:el,
 		name:'John Doe'
	});
 var el = $('<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
 		}
 	});

Members


captureRegions

Capture regions(north,south, west east) when moving over drop points

Default Value:
  • false
Source:
Example
captureRegions:true

el :String|HTMLDivElement

Reference to dragable DOM node

Type:
  • String | HTMLDivElement
Properties:
Name Type Description
el
Default Value:
  • undefined
Source:

id :String

id of node. This attribute is optional

Type:
  • String
Properties:
Name Type Description
id
Default Value:
  • undefined
Source: