我正在尝试在使用SAPUI5设计的网页中使用HandsOnTable。我对上下文菜单的显示有问题。上下文菜单中的选项在菜单中的最后一个选项后重复。我已经包含了以下代码。请帮我解决这个问题。
var container = document.getElementById('sheetContainer');
var settingsHOT = {
data: data,
autoWrapRow: true,
colHeaders: true,
comments: false,
contextMenu: {
items: {
"copy": {},
"paste": {},
"row_above": {},
"row_below": {},
"remove_row": {},
"undo": {},
"redo": {},
"make_read_only": {},
"alignment": {}
}
},
contextMenuCopyPaste: {
swfPath: "resources/ZeroClipboard.swf"
},
columns: [{}, {}, {}, {
editor: 'select',
selectOptions: ["Yes", "No", "Yes with exemptions"]
}, {}, {
renderer: 'html'
}, {}, {}, {}, {}, {}],
colWidths: [120, 100, 200, 150, 250, 250, 100, 250, 250, 250, 125],
fixedColumnsLeft: 1,
fixedRowsTop: 0,
minRows: 1000,
minCols: 26,
maxRows: 10000,
maxCols: 1000,
minSpareRows: 5,
manualColumnResize: true,
manualRowResize: true,
manualColumnMove: true,
manualRowMove: true,
mergeCells: false,
persistentState: true,
rowHeaders: true,
removeRowPlugin: true,
startRows: 5,
startCols: 5,
stretchH: 'none',
search: true,
wrodWrap: true
};