可以实现,与设计器的右键筛选效果类似。
示例代码:
- var spread = new GC.Spread.Sheets.Workbook(document.getElementById("ss"), { sheetCount : 1 });
- var contextMenu = spread.contextMenu.menuData;
- var filter = {
- command :"gc.spread.contextMenu.filter",
- name:"designer.filter",
- text:"筛选",
- workArea:"viewportcorner"
- };
- contextMenu.push(filter);
复制代码
|