Extending dojo.dnd with a creator function
Following the Dojo philosophy of “build with, not on”, dojo.dnd
provides a terrific API for getting the right behaviour for your app, with plenty of extension points and monkeypatching opportunities. Making a creator
function for dojo.dnd.Container
is the most obvious way to customize dojo.dnd
, because it gets called anytime a container or avatar wants to visualize a data item.