Opened 11 years ago

Closed 7 years ago

#6285 closed enhancement (wontfix)

low level drag and drop as easy as scriptaculous

Reported by: harobed Owned by: Eugene Lazutkin
Priority: low Milestone: future
Component: DnD Version: 1.0
Keywords: Cc:
Blocked By: Blocking:

Description (last modified by Eugene Lazutkin)

Hi,

sometimes dojo.dnd mechanism is overkill for my need and I would like use something like scriptaculous drag and drop mechanism.

In Scriptaculous, to perform drag and drop you need two things :

  • Draggable objet
  • Droppable.add method

Example :

var drag = new Draggable(

'id_of_draggable_element', {

revert: true, ghosting: true, onEnd: function() {

console.log("draggable end");

}

}

);

Droppable.add(

'id_of_droppable_element', {

onHover: function(draggable_element, droppable_element) {

console.log(draggable_element); console.log(droppable_element);

}, onDrop: function(draggable_element, droppable_element, event)

{

console.log(draggable_element); console.log(droppable_element); console.log(event);

}

}

);

I think this is lower level than dojo.dnd mechanism.

Few month ago, I've spoke about it in mailing list : http://thread.gmane.org/gmane.comp.web.dojo.user/31296/focus=31297

I've suggested to develop this feature. I do it. See my patch.

Note : this patch need dojo.within function proposed in http://trac.dojotoolkit.org/ticket/6284

Soon, I'll write small documentation about this new feature.

Regards, Stephane

Attachments (1)

low_level_draggable_droppable_like_scriptaculous.patch (27.3 KB) - added by harobed 11 years ago.
Patch : Low level draggable droppable like scriptaculous

Download all attachments as: .zip

Change History (7)

Changed 11 years ago by harobed

Patch : Low level draggable droppable like scriptaculous

comment:1 Changed 11 years ago by harobed

Description: modified (diff)

comment:2 Changed 11 years ago by bill

Milestone: 1.2

I doubt that we want to add an alternate DnD mechanism into dojo core, or even dojox, but will leave to Eugene. Setting milestone to 1.2 so it doesn't show up in 1.1 queue.

comment:3 Changed 11 years ago by Eugene Lazutkin

Description: modified (diff)
Status: newassigned

comment:4 Changed 11 years ago by Eugene Lazutkin

Milestone: 1.2future

Moving all open ticketd to the future.

comment:5 Changed 7 years ago by ben hockey

Keywords: needsreview added
Priority: highlow

i'm trying to identify stale tickets. if there is a need to keep this ticket open, please replace the "needsreview" keyword with "reviewed". if there is no need to keep this ticket open then please close it.

comment:6 Changed 7 years ago by bill

Keywords: needsreview removed
Resolution: wontfix
Status: assignedclosed

Well, see my comment above. I asked Eugene what he thought four years ago, but there's no response, so I guess we should just close this.

Note: See TracTickets for help on using tickets.