参考以下代码:
- var designer = new GC.Spread.Sheets.Designer.Designer(document.getElementById("gc-designer-container"));
- var designerConfig = JSON.parse(JSON.stringify(GC.Spread.Sheets.Designer.DefaultConfig));
- var ribbon = designerConfig.ribbon;
- var FirstLoad = "firstLoad";
- for(var i = 0; i < ribbon.length; i++) {
- if(ribbon[i].id == "data") {
- ribbon[i].visibleWhen = FirstLoad;
- }
- }
- designer.setConfig(designerConfig);
- setTimeout(() =>
- designer.setData(FirstLoad, true), 0)
复制代码
|