API Docs for: 1
Show:

effect.DropPoint Class

Defined in: js/ludo-all.js:2032
Module: language

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
)

Defined in js/ludo-all.js:2032

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

Properties

el

String | HTMLDivElement

Defined in js\ludo-all.js:2069

Reference to dragable DOM node

Default: undefined

id

String

Defined in js\ludo-all.js:2060

id of node. This attribute is optional

Default: undefined