Login Register

drop. limit

Drag and Drop - Limit new items in container

[editor: moving to the appropriate forum…]

Today I was experimenting with the Drag and Drop functionality and I need some help. I have one container with some items and about 14 other containers without items (all with the dojotype: dojo.dnd.Source).

Now I want to limit the items in the 14 containers to 1, so that only 1 item can be placed in that container. If there is already a item in the container the user should move that first.

I've searched the forums and the tutorials but I couldn't find a way.
Hopefully someone can help me. Thanks in advance.

Wouter

Syndicate content