Dijit.Tree with dndController confirm dialog on dropping item
I want ask user for confirming drop item in dijit.Tree
How implement this?
My开发者_如何转开发 solution
dojo.declare('myDnDSource', dijit.tree.dndSource, {
onDndDrop: function() {
if (confirm('Yes/No?')) {
return this.inherited(arguments);
} else {
return this.onDndCancel();
}
}
});
精彩评论