Reputation: 7
I'm drawing the images through GFX API of DOJO
var img = grid.createImage({
x : z,
y : 75,
width : 60,
height : 60,
src : 'images/' + image
});
They are static images now, is their a way to drag it and drop it in DOJO
Upvotes: -2
Views: 212
Reputation: 1100
Have a look here:
http://dojotoolkit.org/reference-guide/1.10/dojo/dnd/Moveable.html
The dojo/dnd/Moveable makes a Domnode, in your case an image, movable. Theres a good example, explaining how to work with it.
Check it out.
Regards,Miriam
Upvotes: 0