Login Register

DnD Container callback

suggestion for dojo.dnd.Container: callback functions onItemInsert, onItemDelete

Hi!
Suppose that I want to do something with an item right after it has been inserted into the container (not moved within the same container) or right before it is deleted (moved to another container).
I haven't found a simple way to do this. Excuse me if there is one and please point me to the right direction. If there is not, my suggestion is that Container constructor recognize additional parameters: onItemInsert and onItemDelete of type function(container, data [,thisObj])

Syndicate content