- var designerConfig = GC.Spread.Sheets.Designer.DefaultConfig;
- designer.setData("tableListPanelShow", true);
- var tableListPanelCommand = GC.Spread.Sheets.Designer.getCommand("tableListPanel");
- tableListPanelCommand.visibleContext = "(" + tableListPanelCommand.visibleContext + ") && tableListPanelShow";
- designerConfig.commandMap = {};
- Object.assign(designerConfig.commandMap, {
- "tableListPanel": tableListPanelCommand
- });
- designer.setConfig(designerConfig);
- designer.setData("tableListPanelShow", false);
复制代码
|