如何在contextmenu handsontable中创建子菜单?
我试试下一把小提琴:

$("#exampleGrid").handsontable({
    ...
    contextMenu: {
        callback: function(key, options) {
            var m = "clicked: " + key;
            window.console && console.log(m) || alert(m);
        },
        items: {
            "edit": {"name": "Edit", "icon": "edit"},
            "fold1a": {
                "name": "Other group",
                "items": {
                    "fold1a-key1": {"name": "echo"},
                    "fold1a-key2": {"name": "foxtrot"},
                    "fold1a-key3": {"name": "golf"}
                }
            }
        }
    }
});

http://jsfiddle.net/MrRino/v99N4/1/
但不要显示子菜单。

最佳答案

你可能会看到:https://github.com/handsontable/jquery-handsontable/issues/1649(在0.11.0中发布)

关于javascript - 如何在上下文菜单handsontable中创建子菜单?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/24074313/

10-12 04:56