Login Register

dojo.dnd

Always drop after target

Hi @ All,

is there a way to tell dojo.dnd in a Source-List to always drop an selected item after the drop target?

Thanks for you help!

DnD with items who use xhrGet

I have a bunch of items in which I can drag and drop inside a Source object. One of those items loads an HTML page in which loads an iframe with a message board inside it. Now, I am able to fully navigate the message board as expected, which is great. However, when I drag it to another location within the Source, it reloads the message board to its index page. Is there a way to stop this behavior?

EDIT: I probably should've posted some of my code, eh?

This is my creator function. "item" has only one property "href" which is a string giving the URL.

Dragging an image constrained by a container that is smaller than the image.

I am trying to create a similar effect to Google's maps dragging of an image within a view port. I don't need/want the whole tiling of images, just a single image.

For example, I want to have a div that is 200x200 px that has an image inside it that is 500x500 px and be able to move the image around within the div.

Extra credit: zoom the image in and out. :)

I have looked at dnd.move.parentConstrainedMoveable, but it seems to assume the inner object is smaller than the outer one.

Thanks

Tree DND Handle support

I'm trying to programmatically create a nested list of items (for my purposes a maximum of three deep), where only the leaf nodes are drag-able.

So far, I've tried using nested dijit.TitlePanes with multiple dojo.dnd.Sources, however this gets slower the more dojo.dnd.Sources you have (somewhere around 50 or so it becomes unbearable on a fairly decent system).

I took a look at the tree structure, but it looks like the idea of "Handles" was removed from the DND surrounding them, and wasn't able to find a good way to inhibit the dragging of non-leaf nodes.

How would you float a widget over top of the dndItemOver highlight and have it follow it as you drag?

I looked at the dnd manager and I don't think that will help me outside of using the publishing it does. I then tried to connect an event to the .dojoDndContainer that would wait that would listen for a .dojoDndItemOver but I don't think that's possible... Any suggestions on where to start.

Drag and drop :: Need a Source with items which will not move to target but get copied.

I have an application with Dojo.Dnd

There is one source with say 5 items. When user drags an item(s) to a target, I want the original item not to be moved to target but instead a copy should be moved to target. As a result, the source will have always 5 items, even after the move.

Does Dojo support this functionality, if yes, what is that I need to change in the Source of the type dojo.dnd.Source?

Please let me know,
Thanks
Ashish

Can the dnd method .insertNodes(false, []) take an array of widgets?

I've created an array of widgets, loaded from a store and fully instantiated in a specific order. It goes into my creator function no problem myCreator(item, hint) where the item instead of being a string is an object and I just pass it through after adding a dnd unique id but it stops after returning the first item.

// create function body
node.id = dojo.dnd.getUniqueId();
return {node: node, data: node.label, type: ["canvas"]};

Dnd Items: Programatically Managed (move, add, insert, create, delete) via context menu (dojo 1.0.0)

Conflict: I've run into a show stopper with this dnd interface. I need to be able to programatically delete, or create/insert new dnd items.

Scenario: a user will right click an existing menu Item and choose either create or delete. The user chooses create; where the existing item(s) are selected, a new item with a group link will take there place, and those selected items will be migrated to a new dnd box.

Syndicate content