开发者

Dijit.Tree with dndController confirm dialog on dropping item

开发者 https://www.devze.com 2023-03-06 17:26 出处:网络
I want ask user for confirming drop item in dijit.Tree How implement this? My开发者_如何转开发 solution

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

精彩评论

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