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没有,从来没有。