Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/364.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 撤消自定义的可握手操作_Javascript_Handsontable - Fatal编程技术网

Javascript 撤消自定义的可握手操作

Javascript 撤消自定义的可握手操作,javascript,handsontable,Javascript,Handsontable,我在handsontable的上下文菜单中定义了一个自定义操作: function contextMenu(hot){ var menu = { callback: function (key, options) { if (key === 'custom') { setTimeout(function () { myCustomAction(hot); }, 100); }

我在
handsontable
的上下文菜单中定义了一个自定义操作:

function contextMenu(hot){
  var menu = {
      callback: function (key, options) {
        if (key === 'custom') {
          setTimeout(function () {
            myCustomAction(hot);
          }, 100);
        }
      },
      items: {
        "commentsAddEdit": {},
        "commentsRemove": {},
        "hsep1": "---------",
        "remove_row": {},
        "custom" : {
          name: "My custom action"
        },
        "hsep2": "---------",
        "undo": {},
        "redo": {}
      }
    };
  return menu;
}

hot.updateSettings({contextMenu: contextMenu(hot)});

我想有可能撤消此自定义操作。如果可能的话,怎么做?

你找到问题的解决方案了吗?@Wlad没有,从来没有。你找到问题的解决方案了吗?@Wlad没有,从来没有。