Opened 12 years ago

Closed 12 years ago

#6847 closed enhancement (fixed)

[patch][cla] Allow specification of a DnD Container's drop "parent" node at creation

Reported by: guest Owned by: Eugene Lazutkin
Priority: high Milestone: 1.2
Component: DnD Version: 1.1.1
Keywords: Cc:
Blocked By: Blocking:

Description

The DnD technical documentation describes the Container's internal "parent" node, which points to the DOM node that contains the DnD items. The attached patch allows this node to be specified (as "dropParent") when the Container is created rather than needing to wait until after the startup() method is finished, e.g.:

var tgt = new dojo.dnd.Source("fooNode", {dropParent: "barNode"});

or

<div id="fooNode" dojoType="dojo.dnd.Source" dropParent="barNode">
    <p>Some stuff here</p>
    <div id="barNode"></div>
</div>
  • Revin Guillen; CLA on file.

Attachments (1)

dnd-drop-parent.patch (1.3 KB) - added by guest 12 years ago.

Download all attachments as: .zip

Change History (2)

Changed 12 years ago by guest

Attachment: dnd-drop-parent.patch added

comment:1 Changed 12 years ago by Eugene Lazutkin

Resolution: fixed
Status: newclosed

(In [13959]) dnd: fixes #6847, thx Revin Guillen! !strict

Note: See TracTickets for help on using tickets.