开发者

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();
      }
    }
  });
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜