鼠标右键的时候,想知道选中了哪几行。或者几列
在这个方法里面,如何能获取到啊?
- var oldCreateMenuItemElement = spread.contextMenu.menuView.createMenuItemElement;
- spread.contextMenu.menuView.createMenuItemElement = function (menuItemData) {
- var self = this;
- var menuItemView = oldCreateMenuItemElement.call(self, menuItemData);
- console.log(menuItemView, '--menuItemData--', oldCreateMenuItemElement)
- if (menuItemData.name === "insertMutiRowsDown" || menuItemData.name === "insertMutiRowsUp" || menuItemData.name === "insertMuticols" || menuItemData.name === "insertMuticolsR") {
- var supMenuItemContainer = menuItemView[0];
复制代码
|
|