You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can't associate any data to a drag. It'd be convenient to do:
var dragGroup =newDraggableGroup();
var person =newPerson()
..name ='David Gilmour';
dragGroup.install(personDiv, data: person);
var dropGroup =newDroppableGroup();
dropGroup.onDrop.listen((DropzoneEvent event) =>print(event.data.name));
dropGroup.accept.add(dragGroup);
Supporting this with installAll() is a bit trickier.
The text was updated successfully, but these errors were encountered:
I think you'd better associate such data outside of the drag and drop. You could, for example, keep a map with the element's id and the associated Person. Then, when a drag occurred, you can look up the id of the dragged element.
Yes, HTML5 does support this, but then you would need to serialize your data (I assumed from your example with person that you didn't mean to serialize Person).
In HTML5, the benefit of adding data to a drag operation is that another application could do something with the associated data (like dragging an image to the desktop). As this is not supported in IE9 I chose not to implement it.
Currently, I don't see a big benefit of adding this to the library. If you think otherwise, could you add more details about your use case?
You can't associate any data to a drag. It'd be convenient to do:
Supporting this with
installAll()
is a bit trickier.The text was updated successfully, but these errors were encountered: