API Docs for: 0.0.2
Show:

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:

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
    }
});

Item Index

Properties

Attributes

Properties

el

String | HTMLDivElement

Reference to dragable DOM node

Default: undefined

id

String

id of node. This attribute is optional

Default: undefined

Attributes

captureRegions

Boolean | Undefined optional

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

Default: false

Example:

captureRegions:true