Reputation: 8775
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
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