Calvin
Calvin

Reputation: 8775

dojo drag and drop: don't want to sort items

I have a dojo.dnd Source object that I just want to list out normally, without the user being able to sort the objects. Is this possible?

Upvotes: 1

Views: 949

Answers (1)

seth
seth

Reputation: 37297

You should use selfAccept="false" (and probably copyOnly="true") too in your Source declaration. That will prevent the user from re-ordering your list.

If you want to prevent items from getting dragged into it, just set the accepts parameter to something that you don't have.

You can see an example of it on dojotoolkit. Just do a search for selfAccept

Upvotes: 2

Related Questions